about summary refs log tree commit diff
path: root/Completion/Builtins/_fc
blob: 8d5c82763c214df56588594dfa2cc01b3e6a72de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#compdef fc

local prev="$words[CURRENT-1]" expl

if [[ "$prev" = -*e ]]; then
  _description expl command
  compgen "$expl[@]" -c
elif [[ "$prev" = -[ARWI]## ]]; then
  _files
fi