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