blob: 7c17c993906d30a481789426051388b9d7188c42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#compdef disable
local prev="$words[CURRENT-1]" args
args=()
[[ "$prev" = -*a* ]] &&
tags=( 'aliases:alias:compadd - ${(@k)aliases} ${(@k)galiases} )
[[ "$prev" = -*f* ]] &&
tags=( "$tags[@]" 'functions:shell function:compadd - ${(@k)functions}' )
[[ "$prev" = -*r* ]] &&
tags=( "$tags[@]" 'reserved-words:reserved word:compadd - ${(@k)reswords}' )
[[ "$prev" != -* ]] &&
tags=( 'builtins:builtin command:compadd - ${(@k)builtins} )
_alternative "$args[@]"
|