skip _ alias for sudo when setting command name in term title

This commit is contained in:
gwjo 2011-04-23 19:32:48 -04:00
commit 789a36f96f

View file

@ -24,6 +24,6 @@ function precmd {
function 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
local CMD=${1[(wr)^(*=*|sudo|ssh|_|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
title "$CMD" "%100>...>$2%<<"
}