This commit is contained in:
GitHub Merge Button 2012-02-23 12:33:09 -08:00
commit ad8b3be5e4

View file

@ -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