From e8f8c3abee5763d58cfcb8eb89e50ec40dbcfde2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 28 Aug 2001 20:35:53 +0000 Subject: handle zsh options in _sh --- Completion/Unix/Command/_sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Completion/Unix/Command/_sh') 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 -- cgit 1.4.1