1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#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