summary refs log tree commit diff
path: root/Completion/Unix/Command/_killall
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:55:08 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:55:08 +0000
commit1701ecb381591c760ea3eceaa288d472a7c58576 (patch)
treec7d4b4c7963273140d5d27f0f5c5ae2031b41ccd /Completion/Unix/Command/_killall
parentcebdd7d4fc1dadb1a56b99f805fef3ad1edf1096 (diff)
downloadzsh-1701ecb381591c760ea3eceaa288d472a7c58576.tar.gz
zsh-1701ecb381591c760ea3eceaa288d472a7c58576.tar.xz
zsh-1701ecb381591c760ea3eceaa288d472a7c58576.zip
moved from Completion/User/_killall
Diffstat (limited to 'Completion/Unix/Command/_killall')
-rw-r--r--Completion/Unix/Command/_killall9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_killall b/Completion/Unix/Command/_killall
new file mode 100644
index 000000000..00bd28e79
--- /dev/null
+++ b/Completion/Unix/Command/_killall
@@ -0,0 +1,9 @@
+#compdef killall
+
+if [[ "$OSTYPE" = linux* ]]; then
+  _alternative \
+      'signals:: _signals -p' \
+      'processes:process:{ compadd "$expl[@]" ${${${${(f)"$(_call_program processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][\(\)]/}:#(ps|COMMAND|-*)}%%\ *}:t} }'
+else
+  _signals -p
+fi