--- 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`"