diff options
Diffstat (limited to 'Completion/Builtins/_fc')
-rw-r--r-- | Completion/Builtins/_fc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Builtins/_fc b/Completion/Builtins/_fc index 5b493dc3b..8d5c82763 100644 --- a/Completion/Builtins/_fc +++ b/Completion/Builtins/_fc @@ -1,9 +1,10 @@ #compdef fc -local prev="$words[CURRENT-1]" +local prev="$words[CURRENT-1]" expl if [[ "$prev" = -*e ]]; then - compgen -c + _description expl command + compgen "$expl[@]" -c elif [[ "$prev" = -[ARWI]## ]]; then _files fi |