# Drop this in .bashrc file. Explanation: # http://www.gridvm.org/name-terminal-windows-from-inside-them.html function n() { if [ "X" = "X$1" ]; then echo "give at least one param, the name" return 1 fi NAME="$*" PROMPT_COMMAND='echo -ne "\033]0;$NAME\007"' export PROMPT_COMMAND return 0 }