# HG changeset patch # User Oleksandr Gavenko # Date 1491315668 -10800 # Node ID 748e1e8943390709ee0e81b411672099f1a25a0a # Parent e227d5f54b8dd4dc64f0a38adb1a4da61f47459d Include current working directory into terminal emulator title (xterm/mintty supports "\e]0;...\a" command). diff -r e227d5f54b8d -r 748e1e894339 .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