summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_pgrep
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2015-05-28 02:27:03 +0200
committerAxel Beckert <abe@deuxchevaux.org>2015-05-28 02:27:03 +0200
commitfd2ef9a80430c1f4f4ae222af228b485c484dd64 (patch)
tree58e2e652beebfed85a7e0545cf81a24f2c74cf09 /Completion/Unix/Command/_pgrep
parentf14d3594049e553de8d61e5fc1d2fa245410a867 (diff)
parentfd786a5c8abf1942a05ed8c470b06cc0b4aa5174 (diff)
downloadzsh-fd2ef9a80430c1f4f4ae222af228b485c484dd64.tar.gz
zsh-fd2ef9a80430c1f4f4ae222af228b485c484dd64.zip
Merge branch 'upstream' and tag 'zsh-5.0.7-dev-4' into 'debian'
Diffstat (limited to 'Completion/Unix/Command/_pgrep')
-rw-r--r--Completion/Unix/Command/_pgrep12
1 files changed, 1 insertions, 11 deletions
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep
index 3af55a379..d3dcd1812 100644
--- a/Completion/Unix/Command/_pgrep
+++ b/Completion/Unix/Command/_pgrep
@@ -8,7 +8,7 @@ arguments=('-P[parent process id]:parent process id:->ppid'
'-F[match only in process in pidfile]:files:_files'
'-g[match only in process group ids]:group:->pgid'
'-G[match only real group id]:group:_groups'
- '-j[match only in processes inside jails]:jail id:->jid'
+ '-j[match only in processes inside jails]:jail id:_sequence _jails -0 -o jid'
'-J[match only in project ids]:project id:->projid'
'-M[extract the name list from the specified core]:files:_files'
'-N[extract the name list from the specified system]:files:_files'
@@ -93,16 +93,6 @@ case $state in
_wanted sid expl 'session id' compadd -S ',' -q -F used $sid
;;
- (jid)
- compset -P '*,'
-
- local -a used jid
- used=(${(s:,:)IPREFIX})
- jid=(${(uon)$(ps -ax -o jid=)})
-
- _wanted jid expl 'jail id' compadd -S ',' -q -F used $jid
- ;;
-
(ppid)
compset -P '*,'