Labels

bittorrent (1) chromium (1) dvb (1) dvb-t (1) fedora (1) fm (1) gqrx (1) howto (1) idle (1) ireland (1) linux (3) lubuntu (1) openbsd (1) ps1 (1) radio (1) rtl-sdr (1) sdr (1) shell (1) tips (1) tuning (1) tv (1) unix (1) vlc (1)
Showing posts with label openbsd. Show all posts
Showing posts with label openbsd. Show all posts

Sunday, September 1, 2013

$PS1

For many years I used one and the same PS1 prompt on all computers I had:
PS1='\u@\h:\j:\w\$ '
It looks like this when rendered:
slava@jupiter:0:/usr/local/bin$
Simple and functional, but when dealing with large outputs (say, compiling a C++ program...) it might be hard to find the start of the output, the prompt simply dissolves into the wall of text.

Not long ago I changed my job and decided it was time to update my PS1 as well. I wanted something with better contrast and readability. The result was this:

This is what it looks like on screen:

This prompt is highly visible, turns red when you switch to root user and has the good property of always having the cursor in the same place.

A few days ago I installed good ol' OpenBSD as my main OS on my main PC and I think I came up with an even better prompt:

This is what it looks like:

Neat, huh?