about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_sh b/Completion/Unix/Command/_sh
index 22379856e..559c6ad1b 100644
--- a/Completion/Unix/Command/_sh
+++ b/Completion/Unix/Command/_sh
@@ -1,5 +1,14 @@
 #compdef sh ksh bash zsh csh tcsh rc
 
+if [[ $service == zsh ]]; then
+  # try a bit harder
+  if [[ ${words[CURRENT-1]} == -o ]]; then
+    _options
+    # no other possibilities
+    return
+  fi
+fi
+
 if (( CURRENT == ${words[(i)-c]} + 1 )); then
   compset -q
   _normal