]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Added colorized prompt for bash.
authorSimon Ruderich <simon@ruderich.org>
Tue, 28 Oct 2008 13:30:41 +0000 (14:30 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 15:34:40 +0000 (16:34 +0100)
bash/rc

diff --git a/bash/rc b/bash/rc
index 20f20e65cc49d25dc3fb5a4f97fad538e334d1a8..48b6433e26db05e0683514adfe64e6b75a0005a2 100644 (file)
--- 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