Print current dir at prompt. Remove broken code.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 30 Aug 2013 00:26:29 +0300
changeset 633 ef2436c18276
parent 632 500dcbf3445d
child 634 89a1a77ad559
Print current dir at prompt. Remove broken code.
.bashrc
--- a/.bashrc	Thu Aug 29 23:05:56 2013 +0300
+++ b/.bashrc	Fri Aug 30 00:26:29 2013 +0300
@@ -10,19 +10,14 @@
 fi
 
 PS1='bash# '
-# Set magenta bold font.
+PS2='> '
 case "$TERM" in
   xterm*|eterm-color)
-    PS1='\[\033[31m\033[1m\]\h\[\033[35m\]+bash# \[\033[0m\]'
+    PS1='\033[36m\w\n\[\033[31m\033[1m\]\h\[\033[35m\]+bash# \[\033[0m\]'
     PS2='\[\033[32m\]> \[\033[0m\]'
   ;;
 esac
 
-# Add current dir to xterm title.
-case "$TERM" in
-  xterm*) PS1='\[\033]0;\u@\h+bash: \w\007\]'$PS1 ;;
-esac
-
 if command -v dircolors >/dev/null 2>&1 && [[ -f ~/.dircolors ]]; then
   eval "`dircolors -b ~/.dircolors`"
 fi