Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Silent setopt
- X-seq: zsh-users 17607
- From: İsmail Dönmez <ismail@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Silent setopt
- Date: Wed, 23 Jan 2013 13:28:34 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=donmez.ws; s=www; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=I+bBxc27UNYnt9x58ILDH2FmeE7It33EQyvmqu0d+nQ=; b=K9LOJ2Gc1J06dFziJrDFH1OBcd32ivK79jMDWSrjBwuFS01Gq+RHJ3CA4bzEsDMZBj HDUD9ErR7WVhnIg60xBKqqBqWcBlHwck/uxZtZBjD1yrB62iuZ1o9A1zn+r2ZK2ks929 tFzjE2f78F/q2Y9Ty8gC7Jf7HcyYzlQBAB/mI=
- In-reply-to: <20130123121400.5239671d@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAJ1KOAg7RgvNpTkj3x+O61o0ryA2zHqukZi_=+oZXPuf5Ywa9w@mail.gmail.com> <20130123113254.3d65278c@pwslap01u.europe.root.pri> <20130123121400.5239671d@pwslap01u.europe.root.pri>
Hi;
On Wed, Jan 23, 2013 at 1:14 PM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx>wrote:
> On Wed, 23 Jan 2013 11:32:54 +0000
> Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> > On Wed, 23 Jan 2013 11:21:38 +0100
> > İsmail Dönmez <ismail@xxxxxxxxx> wrote:
> > > I am using the same zsh config across a lot of machine which have all
> kinds
> > > of versions of zsh and when I ssh into an old zsh machine I get
> > >
> > > setopt:47: no such option: COMBININGCHARS
> > > setopt:48: no such option: HASH_EXECUTABLESONLY
> > >
> > > Which is expected but gets boring after some time. So I wonder if
> there is
> > > a way to silence setopt for unsupported options?
> >
> > It should be as simple as
> >
> > setopt COMBININGCHARS HASHEXECUTABLESONLY 2>/dev/null
>
> Ooh, I've noted a slightly more sophisticated (but slower) way in my
> .zshrc.
>
> zmodload -i zsh/parameter
> for opt in incappendhistory histexpiredupsfirst typesetsilent; do
> [[ -n ${options[$opt]} ]] && setopt $opt
> done
>
> This relies on the special options associative array, also used by
> completion.
>
Elegant, thanks!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author