1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00
zsh/Completion/Base/_default
2000-03-23 04:19:26 +00:00

23 lines
613 B
Text

#compdef -default-
local ctl
if { zstyle -s ':completion:${curcontext}:' use-compctl ctl ||
zmodload -e zsh/compctl } && [[ "$ctl" != (no|false|0|off) ]]; then
local opt
opt=()
[[ "$ctl" = *first* ]] && opt=(-T)
[[ "$ctl" = *default* ]] && opt=("$opt[@]" -D)
compcall "$opt[@]" || return 0
fi
_wanted files || return 1
_files && return 0
# magicequalsubst allows arguments like <any-old-stuff>=~/foo to do
# file name expansion after the =. In that case, it's natural to
# allow completion to handle file names after any equals sign.
[[ -o magicequalsubst ]] && compset -P 1 '*=' && _files