summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/files/xterm-title.sh
blob: 3cff0e3a9368c38a8ef7e6853deeff5f4dea1ab7 (plain)
1
2
3
4
5
6
7
8
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    ;;
*)
    ;;
esac