Saturday, November 22, 2008

Making a pretty Bash prompt

Stick this line in ~/.bashrc
PS1="\n\[$(tput setaf 3)\](\u) \[$(tput setaf 1)\]\W \[$(tput setaf 3)\]---> \[$(tput setaf 2)\]"

and bingo!

(spud) / ---> cd home/

(spud) home ---> ls
sapi51 spud

No comments: