Reset zsh options in termsupports preexec function to enable extended_glob.

Per discussion on commit 52df85440e, this mostly resolves the concerns raised in commit d4ea399b04
This commit is contained in:
Matt Cable 2011-04-06 22:21:10 -06:00
commit c9c233f3e4

View file

@ -24,6 +24,8 @@ function precmd {
#Appears at the beginning of (and during) of command execution
function preexec {
if [ "$DISABLE_AUTO_TITLE" != "true" ]; then
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%<<"
fi