Add user and host info to xterm title.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Oct 2012 21:39:52 +0300
changeset 578 c4ed974c79ce
parent 577 50e17493c476
child 584 e5b6c947ffab
Add user and host info to xterm title.
.bashrc
--- a/.bashrc	Mon Oct 22 21:25:08 2012 +0300
+++ b/.bashrc	Mon Oct 22 21:39:52 2012 +0300
@@ -20,7 +20,7 @@
 
 # Add current dir to xterm title.
 case "$TERM" in
-  xterm*) PS1='\[\033]0;bash: \w\007\]'$PS1 ;;
+  xterm*) PS1='\[\033]0;\u@\h+bash: \w\007\]'$PS1 ;;
 esac
 
 if command -v dircolors >/dev/null 2>&1 && [[ -f ~/.dircolors ]]; then