diff options
Diffstat (limited to 'Completion/Commands')
-rw-r--r-- | Completion/Commands/_history_complete_word | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Commands/_history_complete_word b/Completion/Commands/_history_complete_word index b55966062..76cad470f 100644 --- a/Completion/Commands/_history_complete_word +++ b/Completion/Commands/_history_complete_word @@ -2,5 +2,9 @@ local expl -_description expl 'history word' +if [[ -n "$compconfig[history_sort]" ]]; then + _description expl 'history word' +else + _description -V expl 'history word' +fi compgen "$expl[@]" -Q -H 0 '' |