zsh: fix preexec with +%s
This commit is contained in:
parent
8944348eee
commit
d22d026c59
@ -34,11 +34,12 @@ case $TERM in
|
||||
}
|
||||
preexec () {
|
||||
if [[ -v SSH_CONNECTION ]]; then
|
||||
print -Pn "\e]0;[%n@%M][%~]# ($1)\a"
|
||||
print -Pn "\e]0;[%n@%M][%~]# (${1:gs/%/%%})\a"
|
||||
else
|
||||
print -Pn "\e]0;[%~]# ($1)\a"
|
||||
print -Pn "\e]0;[%~]# (${1:gs/%/%%})\a"
|
||||
fi
|
||||
}
|
||||
|
||||
;;
|
||||
screen)
|
||||
precmd () {
|
||||
|
Loading…
Reference in New Issue
Block a user