Added user/host to terminal title.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 08 Jul 2018 22:54:12 +0300
changeset 901 5e5c705d2831
parent 900 9ffcac2096b5
child 902 86594abd9365
Added user/host to terminal title.
.bashrc
--- a/.bashrc	Sun Jun 24 02:30:33 2018 +0300
+++ b/.bashrc	Sun Jul 08 22:54:12 2018 +0300
@@ -29,7 +29,7 @@
 # Set current directory in terminal emulator title.
 case "$TERM" in
   xterm*|screen|linux|cygwin)
-    PS1=$'\e]0;bash \w\a'"$PS1"
+    PS1=$'\e]0;bash \u@\h \w\a'"$PS1"
   ;;
 esac