Include current working directory into terminal emulator title (xterm/mintty
supports "\e]0;...\a" command).
--- 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