1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 10:20:55 +01:00
zsh/Completion/Builtins/_disable
1999-11-15 12:01:46 +00:00

15 lines
477 B
Text

#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[@]"