Bash: fix terminal title.

This commit is contained in:
Artem Sapegin 2012-11-15 16:30:35 +04:00
parent b27d8fd08b
commit 7332f12e14

View File

@ -102,7 +102,7 @@ function prompt_command {
# Terminal title # Terminal title
TITLE=`basename ${PWDNAME}` TITLE=`basename ${PWDNAME}`
[ $SHLVL -gt 1 ] && TITLE="${TITLE}${HOSTNAME}" [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && TITLE="${TITLE}${HOSTNAME}"
echo -ne "\033]0;${TITLE}"; echo -ne "\007" echo -ne "\033]0;${TITLE}"; echo -ne "\007"
} }