diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 221989502..fb4708682 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -25,7 +25,10 @@ function omz_termsupport_preexec { emulate -L zsh setopt extended_glob local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd - title "$CMD" "%100>...>$2%<<" + local psvar + psvar[1]="$CMD" + psvar[2]="$2" + title "%1v" "%100>...>%2v%<<" } autoload -U add-zsh-hook