From 1e4e887325bc25dabad6ee9b43d815d5c149710d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 28 Oct 2008 14:30:41 +0100 Subject: [PATCH] Added colorized prompt for bash. --- bash/rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.45.2