Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

setopt temporarily?



One can set an environment variable only for the command that follows:

    foo=bar echo $foo 

It would be nice to be able similarly to temporarily set an option.

Perhaps setopt could terminate its arg parsing with a - or -- like this:

    setopt pushdSilent - pushd Desktop

Or maybe there needs to be a more general syntax for changing anything in zsh only for the following command.


Messages sorted by: Reverse Date, Date, Thread, Author