From: Simon Ruderich Date: Tue, 28 Oct 2008 13:30:41 +0000 (+0100) Subject: Added colorized prompt for bash. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=1e4e887325bc25dabad6ee9b43d815d5c149710d;p=config%2Fdotfiles.git Added colorized prompt for bash. --- diff --git a/bash/rc b/bash/rc index 20f20e6..48b6433 100644 --- a/bash/rc +++ b/bash/rc @@ -17,9 +17,10 @@ fi # global env.local. source_config ~/.shell "" env $host -# Set the prompt; hostname and current working directory are displayed. -PS1="\h:\w \$ " +# Set the prompt; hostname and current working directory are displayed. +# Hostname is displayed in green, current directory in blue. +PS1='\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ ' # Use Vi(m) style in bash. set -o vi