about summary refs log tree commit diff
path: root/Completion/Builtins/_enable
blob: 5cb07539e694774e032decc65225f32d7ca55683 (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 "$args[@]"