summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_pgrep
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-02-06 00:22:15 +0100
committerOliver Kiddle <opk@zsh.org>2021-02-06 00:23:20 +0100
commit4bea58d0c41f5b0d1bb70244c51f956f60b576e4 (patch)
tree27bd62865edadeaf3727e5642c05aaa1a260d270 /Completion/Unix/Command/_pgrep
parentba48357315b3ceadee352e3c97ccac6a47e46ef4 (diff)
downloadzsh-4bea58d0c41f5b0d1bb70244c51f956f60b576e4.tar.gz
zsh-4bea58d0c41f5b0d1bb70244c51f956f60b576e4.zip
47919: use common function for completing BSD login classes
also update for options to env on FreeBSD and Dragonfly
Diffstat (limited to 'Completion/Unix/Command/_pgrep')
-rw-r--r--Completion/Unix/Command/_pgrep3
1 files changed, 1 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep
index 3f00b21dc..49184307f 100644
--- a/Completion/Unix/Command/_pgrep
+++ b/Completion/Unix/Command/_pgrep
@@ -5,7 +5,6 @@
# (which changed the behaviour of -f and added -a)
# - We don't really need to keep pgopts and pkopts separate, but it seems like
# it should make things a bit easier to follow
-# - @todo We could complete log-in classes given to -c
# - @todo We could complete routing tables given to -T
local curcontext="$curcontext" state line ret=1 expl pgopts pkopts no
@@ -18,7 +17,7 @@ typeset -a arguments sig_arguments aopts
# overridden below
arguments=(
'-a[include process ancestors in match list]'
- '-c+[match only on specified login class]:login class'
+ '-c+[match only on specified login class]:login class:_login_classes'
'(-F --pidfile)'{-F+,--pidfile=}'[match only processes in specified PID file]:PID file:_files'
'(-f --full)'{-f,--full}'[match against full command line]'
'(-G --group)'{-G+,--group=}'[match only on specified real group IDs]: :_sequence _groups'