about summary refs log tree commit diff
path: root/Completion/Builtins/_enable
blob: ae2bdc38c280badb8dffbc3c8044ef2304ae318a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#compdef enable

local prev="$words[CURRENT-1]" args

args=()
[[ "$prev" = -*a* ]] &&
    tags=( 'aliases:alias:compadd - ${(@k)dis_aliases} ${(@k)dis_galiases} )
[[ "$prev" = -*f* ]] &&
    tags=( "$tags[@]" 'functions:shell function:compadd - ${(@k)dis_functions}' )
[[ "$prev" = -*r* ]] &&
    tags=( "$tags[@]" 'reserved-words:reserved word:compadd - ${(@k)dis_reswords}' )
[[ "$prev" != -* ]]  &&
    tags=( 'builtins:builtin command:compadd - ${(@k)dis_builtins} )

_alternative any "$args[@]"