Bash: Try to fix dash in title in Putty.

This commit is contained in:
Artem Sapegin 2012-11-28 13:03:17 +04:00
parent 2057b9cd3a
commit 551c994416
1 changed files with 1 additions and 1 deletions

View File

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