diff options
Diffstat (limited to 'Completion/Builtins/_enable')
-rw-r--r-- | Completion/Builtins/_enable | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Builtins/_enable b/Completion/Builtins/_enable index a698a3895..b4f0356bc 100644 --- a/Completion/Builtins/_enable +++ b/Completion/Builtins/_enable @@ -4,19 +4,19 @@ local prev="$words[CURRENT-1]" ret=1 expl if [[ "$prev" = -*a* ]]; then _description expl alias - compgen "$expl[@]" -da && ret=0 + compadd "$expl[@]" "$@" - "${(k@)aliases[(R)?disabled*]}" && ret=0 fi if [[ "$prev" = -*f* ]]; then _description expl 'shell function' - compgen "$expl[@]" -dF && ret=0 + compadd "$expl[@]" "$@" - "${(k@)functions[(R)?disabled*]}" && ret=0 fi if [[ "$prev" = -*r* ]]; then _description expl 'reserved word' - compgen "$expl[@]" -dw && ret=0 + compadd "$expl[@]" "$@" - "${(k@)reswords[(R)?disabled*]}" && ret=0 fi if [[ "$prev" != -* ]]; then _description expl 'builtin command' - compgen "$expl[@]" -dB && ret=0 + compadd "$expl[@]" "$@" - "${(k@)builtins[(R)?disabled*]}" && ret=0 fi return ret |