1 2 3 4 5 6 7 8 9
#compdef fc local prev="$words[CURRENT-1]" if [[ "$prev" = -*e ]]; then compgen -c elif [[ "$prev" = -[ARWI]## ]]; then _files fi