Include current working directory into terminal emulator title (xterm/mintty
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 04 Apr 2017 17:21:08 +0300
changeset 848 748e1e894339
parent 847 e227d5f54b8d
child 849 04cb764675f3
Include current working directory into terminal emulator title (xterm/mintty supports "\e]0;...\a" command).
.bashrc
--- a/.bashrc	Thu Apr 06 00:45:36 2017 +0300
+++ b/.bashrc	Tue Apr 04 17:21:08 2017 +0300
@@ -13,7 +13,7 @@
 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\] '
+    PS1=$'\e]0;bash \w\a\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