mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-17 10:20:55 +01:00
15 lines
477 B
Text
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[@]"
|