blob: 33c2028649eb40b9e488bed5f23d1009d351a649 (
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 any "$args[@]"
|