Fix terminal title for paths with spaces.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
fb10240506
commit
fd237f2e62
@ -78,7 +78,7 @@ function prompt_command() {
|
|||||||
PS2="\[$CYAN\]$prompt_symbol\[$NOCOLOR\] "
|
PS2="\[$CYAN\]$prompt_symbol\[$NOCOLOR\] "
|
||||||
|
|
||||||
# Terminal title
|
# Terminal title
|
||||||
local title="$(basename $PWD)"
|
local title=`basename "$PWD"`
|
||||||
[ -n "$remote" ] && title="$title \xE2\x80\x94 $HOSTNAME"
|
[ -n "$remote" ] && title="$title \xE2\x80\x94 $HOSTNAME"
|
||||||
echo -ne "\033]0;$title"; echo -ne "\007"
|
echo -ne "\033]0;$title"; echo -ne "\007"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user