diff options
| author | Oliver Kiddle <opk@zsh.org> | 2014-08-14 00:00:39 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2014-08-14 19:00:04 +0200 |
| commit | 469ee6daef50d0736a38f646bd9eb659b7aad6d1 (patch) | |
| tree | e77a3b919090d1d8433b4f06d6b41fcf6c8d387a /Completion/Unix/Command/_pgrep | |
| parent | 33002: tcp_expect -P pm tags matches with a string (diff) | |
| download | zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.gz zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.bz2 zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.lz zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.xz zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.zst zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.zip | |
32997: new utility function for separated lists
Diffstat (limited to 'Completion/Unix/Command/_pgrep')
| -rw-r--r-- | Completion/Unix/Command/_pgrep | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep index 3b180ab2d..95d0ea284 100644 --- a/Completion/Unix/Command/_pgrep +++ b/Completion/Unix/Command/_pgrep @@ -70,13 +70,9 @@ _arguments -s -w $arguments && ret=0 case $state in (tty) - compset -P '*,' - - local -a used ttys - used=(${(s:,:)IPREFIX}) - + local -a ttys ttys=( /dev/tty*(N) /dev/pts/*(N) ) - _wanted tty expl 'terminal device' compadd -S ',' -q -F used ${ttys#/dev/} + _sequence -s , _wanted tty expl 'terminal device' compadd - ${ttys#/dev/} ;; (sid) |
