zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: exclude users in watch variable?
Date: Tue, 10 Feb 2015 21:45:51 +0000	[thread overview]
Message-ID: <20150210214551.GC1829@tarsus.local2> (raw)
In-Reply-To: <20150210192857.GA13932@spiegl.de>

$watch does not support patterns.  For an alternative I'd suggest
writing a custom precmd.  Maybe someone else has a better idea.

(Incidentally, if $watch did support patterns, you'd have needed
to (a) quote the ^ so it isn't interpreted as filename generation,
(b) consolidate the two negative patterns as '^(user1|user2)' because
otherwise between them they'd match everything.

Cheers,

Daniel

Andy Spiegl wrote on Tue, Feb 10, 2015 at 20:28:57 +0100:
> I suppose no answer by noone means that it's impossible, right?
> Thanks,
>  Andy.
> 
> On 2015-02-04, 18:46, Andy Spiegl wrote:
> > "watch=( notme )" excludes myself but is there a way to exclude other usernames?
> > 
> > I was trying "watch=( notme ^user1 ^user2 )" but I am expecting too much, right?
> 
> -- 
>  me@condor:~> find . -name home
>  There's no place like home.


  reply	other threads:[~2015-02-10 21:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04 17:46 Andy Spiegl
2015-02-10 19:28 ` Andy Spiegl
2015-02-10 21:45   ` Daniel Shahaf [this message]
2015-02-11 11:46     ` Andy Spiegl
2015-02-11 16:56       ` Daniel Shahaf
2015-02-12  5:22         ` Bart Schaefer
2015-02-11 12:26 ` Peter Stephenson
2015-02-11 15:16   ` Andy Spiegl

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=20150210214551.GC1829@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-users@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).