diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2001-08-28 20:35:53 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2001-08-28 20:35:53 +0000 |
commit | e8f8c3abee5763d58cfcb8eb89e50ec40dbcfde2 (patch) | |
tree | b2c278c0fab03ba3cd969ef200d806dacd32b3ad /Completion/Unix | |
parent | b3336b791893f0c6a85c0aa9cec744af6a2c8d40 (diff) | |
download | zsh-e8f8c3abee5763d58cfcb8eb89e50ec40dbcfde2.tar.gz zsh-e8f8c3abee5763d58cfcb8eb89e50ec40dbcfde2.tar.xz zsh-e8f8c3abee5763d58cfcb8eb89e50ec40dbcfde2.zip |
handle zsh options in _sh
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_sh | 9 |
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 |