# HG changeset patch # User Oleksandr Gavenko # Date 1350928836 -10800 # Node ID 3d5ba8711141b97a0ae1a453bc5d8d1adfb47699 # Parent 77da3f78d0d612e9c1e2b27af37527c1c9046ddb Add current dir to xterm title. http://localhost/doc/HOWTO/en-html/Bash-Prompt-HOWTO/xterm-title-bar-manipulations.html diff -r 77da3f78d0d6 -r 3d5ba8711141 .bashrc --- 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