# HG changeset patch # User Oleksandr Gavenko # Date 1492208405 -10800 # Node ID 8a6f8cbd2cce8ad013871359db328038f97296f1 # Parent ea8451937bb4a29ef40aa9ca7888cfd39a14f72f# Parent 04cb764675f36d43ca02a42470b2691aeb8ba033 merged diff -r ea8451937bb4 -r 8a6f8cbd2cce .bashrc --- 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`"