about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/User/_killall10
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/User/_killall b/Completion/User/_killall
index 042b3892a..05bc8e709 100644
--- a/Completion/User/_killall
+++ b/Completion/User/_killall
@@ -1,5 +1,9 @@
 #compdef killall
 
-_alternative \
-    'signals:: _signals -p' \
-    'processes:process:{ compadd "$expl[@]" ${$(ps ho comm 2> /dev/null):#(ps|COMMAND)} }'
+if [[ "$OSTYPE" = linux* ]]; then
+  _alternative \
+      'signals:: _signals -p' \
+      'processes:process:{ compadd "$expl[@]" ${$(ps ho comm 2> /dev/null):#(ps|COMMAND)} }'
+else
+  _signals -p
+fi