From 789a36f96f0b5bfb220602a079949d9af14a7f36 Mon Sep 17 00:00:00 2001 From: gwjo Date: Sat, 23 Apr 2011 19:32:48 -0400 Subject: [PATCH] skip _ alias for sudo when setting command name in term title --- lib/termsupport.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 22e7f372f..5d28ec958 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -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%<<" }