Use coloured prompt under Emacs term-mode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 31 Jul 2012 20:33:21 +0300
changeset 491 1f952c2d0135
parent 490 eb6cd35851b2
child 492 3afe78030216
Use coloured prompt under Emacs term-mode.
.bashrc
--- a/.bashrc	Thu Jul 26 15:17:27 2012 +0300
+++ b/.bashrc	Tue Jul 31 20:33:21 2012 +0300
@@ -12,7 +12,7 @@
 PS1='bash# '
 # Set magenta bold font.
 case "$TERM" in
-  xterm*)
+  xterm*|eterm-color)
     PS1='\[\033[31m\033[1m\]\h\[\033[35m\]+bash# \[\033[0m\]'
     PS2='\[\033[32m\]> \[\033[0m\]'
   ;;