zsh-workers
 help / color / mirror / code / Atom feed
From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: Dave Yost <Dave@Yost.com>
Cc: zsh-workers@zsh.org
Subject: Re: setopt temporarily?
Date: Thu, 20 Feb 2014 15:33:40 -0800	[thread overview]
Message-ID: <20140220233340.GA25786@redoubt.spodhuis.org> (raw)
In-Reply-To: <8458DC5E-E862-462A-BFCF-FFA2BDEB29C8@yost.com>

On 2014-02-20 at 13:06 -0800, Dave Yost wrote:
> 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.

Anonymous function.

(){ setopt localoptions xtrace; ls }

-Phil


  reply	other threads:[~2014-02-20 23:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 21:06 Dave Yost
2014-02-20 23:33 ` Phil Pennock [this message]
2014-02-21  2:45   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140220233340.GA25786@redoubt.spodhuis.org \
    --to=zsh-workers+phil.pennock@spodhuis.org \
    --cc=Dave@Yost.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).