summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWieland Hoffmann <themineo@gmail.com>2017-03-12 11:16:30 +0100
committerOliver Kiddle <opk@zsh.org>2017-03-12 22:35:20 +0100
commit5fa422b246d3fa8be5b1c876525e415d8c4834b1 (patch)
tree34a1e330d3bf97028c72ef3f03f237e28c3c9f55
parentd044530afd34c9d281953e304e9b2a622cb0c0f0 (diff)
downloadzsh-5fa422b246d3fa8be5b1c876525e415d8c4834b1.tar.gz
zsh-5fa422b246d3fa8be5b1c876525e415d8c4834b1.zip
40837: for pgrep completion, add -w on Linux
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_pgrep3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fe0446ed4..4d305d06f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-12 Oliver Kiddle <opk@zsh.org>
+
+ * Wieland Hoffmann: 40837: Completion/Unix/Command/_pgrep:
+ add -w on Linux
+
2017-03-12 Daniel Shahaf <d.s@daniel.shahaf.name>
* 40816: Doc/Zsh/builtins.yo, Test/D01prompt.ztst: Document
diff --git a/Completion/Unix/Command/_pgrep b/Completion/Unix/Command/_pgrep
index 0b7d23d4d..714bf095b 100644
--- a/Completion/Unix/Command/_pgrep
+++ b/Completion/Unix/Command/_pgrep
@@ -28,6 +28,7 @@ arguments=('-P[parent process id]:parent process id:->ppid'
'-q[do not write anything to standard output]'
'-S[search also in system processes]'
'-v[negate matching]'
+ '-w[show thread ids instead of pids]'
'-x[match exactly]'
'-z[match only in zones]:zone:_zones')
@@ -41,7 +42,7 @@ fi
local optchars
case "$OSTYPE" in
linux*)
- optchars="cflvxdnoPgsuUGt"
+ optchars="cflvxdnoPgsuUGtw"
;;
freebsd*)
optchars="LSafilnoqvxFGMNPUdgjstu"