mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-19 15:41:32 +02:00
16 lines
219 B
Text
16 lines
219 B
Text
#compdef -condition-
|
|
|
|
local prev="$words[CURRENT-1]"
|
|
|
|
if [[ "$prev" = -o ]]; then
|
|
_options
|
|
elif [[ "$prev" = -([no]t|ef) ]]; then
|
|
_files
|
|
else
|
|
local ret=1
|
|
|
|
_files && ret=0
|
|
_parameters && ret=0
|
|
|
|
return ret
|
|
fi
|