Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: User installation script for new completion
- X-seq: zsh-workers 6187
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: User installation script for new completion
- Date: Sun, 2 May 1999 17:34:44 -0700
- In-reply-to: <990502165200.ZM10954@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <9905021403.AA44254@xxxxxxxxxxxxxxxxx> <990502165200.ZM10954@xxxxxxxxxxxxxxxxxxxxxxx>
On May 2, 4:52pm, Bart Schaefer wrote:
} Subject: Re: User installation script for new completion
}
} You don't mean this, do you?
}
} typeset -A options
} options=($(setopt kshoptionprint;setopt))
} [[ -o kshoptionprint ]] || options[kshoptionprint]=off
} [[ -o monitor ]] && options[monitor]=on
} [[ -o zle ]] && options[zle]=on
}
} for i in ${(k)options}
} do case $options[$i] in
} on) setopt $i;;
} off) unsetopt $i;;
} esac done
Even better:
unsetopt ${(k)options[(R)off]} no${(k)^options[(R)on]}
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author