.bashrc
changeset 576 3d5ba8711141
parent 565 de7293aa414f
child 578 c4ed974c79ce
--- a/.bashrc	Mon Oct 22 15:18:32 2012 +0300
+++ b/.bashrc	Mon Oct 22 21:00:36 2012 +0300
@@ -18,6 +18,11 @@
   ;;
 esac
 
+# Add current dir to xterm title.
+case "$TERM" in
+  xterm*) PS1='\[\033]0;bash: \w\007\]'$PS1 ;;
+esac
+
 if command -v dircolors >/dev/null 2>&1 && [[ -f ~/.dircolors ]]; then
   eval "`dircolors -b ~/.dircolors`"
 fi