From 0cfa2dcfc424667f7fc29cf9a13c68883f3ffc28 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Mon, 28 Sep 2015 00:09:03 +0900 Subject: 36631: separate _zsh from _sh Do all the completion for zsh by _arguments --- Completion/Unix/Command/_sh | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'Completion/Unix/Command/_sh') diff --git a/Completion/Unix/Command/_sh b/Completion/Unix/Command/_sh index 1b5112212..2afb46621 100644 --- a/Completion/Unix/Command/_sh +++ b/Completion/Unix/Command/_sh @@ -1,13 +1,4 @@ -#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 +#compdef sh ksh bash csh tcsh rc if (( CURRENT == ${words[(i)-c]} + 1 )); then _cmdstring @@ -21,9 +12,3 @@ else fi _default fi - -local ret=$? - -[[ $service == zsh ]] && _arguments -S -s -- && ret=0 - -return ret -- cgit 1.4.1