merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 15 Apr 2017 01:20:05 +0300
changeset 855 8a6f8cbd2cce
parent 854 ea8451937bb4 (current diff)
parent 849 04cb764675f3 (diff)
child 856 4819eaebb92c
merged
--- a/.bashrc	Sat Apr 15 01:19:26 2017 +0300
+++ b/.bashrc	Sat Apr 15 01:20:05 2017 +0300
@@ -11,12 +11,19 @@
 
 PS1='\n==============================================================================\r$?|\u@\h \w \nbash# '
 PS2='> '
+
 case "$TERM" in
   xterm*|eterm-color|screen|linux)
     PS1=$'\n\e[36m==============================================================================\r$?|\e[31m\u\e[35m@\h\e[0m\e[36m \w \n\[\e[1m\e[31m\]bash#\[\e[0m\] '
     PS2=$'\[\e[32m\]> \[\e[0m\]'
   ;;
 esac
+# Set current directory in terminal emulator title.
+case "$TERM" in
+  xterm*|screen|linux)
+    PS1=$'\e]0;bash \w\a'"$PS1"
+  ;;
+esac
 
 if command -v dircolors >/dev/null 2>&1 && [[ -f ~/.dircolors ]]; then
   eval "`dircolors -b ~/.dircolors`"