Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: setopt temporarily?
- X-seq: zsh-workers 32421
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Dave Yost <Dave@xxxxxxxx>
- Subject: Re: setopt temporarily?
- Date: Thu, 20 Feb 2014 15:33:40 -0800
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201312; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=db+VjnPu3AklqGz1a9mGlZXK6eQ9ILbMAhTeQWinIpg=; b=Nk5xeFadRhnXqlRk96tg2U5LdkDF8ORjEXjeUVa8NE6U0U4+duYR+weJdCGi6OvLTR5tWj4nzKKIT/eMYdv30u9+is884n4ruDVhnGThMBcA0KI8qfqyDjqGiobODBK3P+gefi4u2VM2dkpLzLm2GYxrqlpSsKXVMXNVX3Z6qMAsAWh49rtbn3SB5LOLxBAzrxmkzi2zLDnxg1HV;
- In-reply-to: <8458DC5E-E862-462A-BFCF-FFA2BDEB29C8@yost.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Dave Yost <Dave@xxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Openpgp: url=https://www.security.spodhuis.org/PGP/keys/0x3903637F.asc
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author