Merge pull request #1877 from NoahGorny/fix-alias-completion-for-real

plugins: Fix alias-completion by comparing completions to alias literally
pull/1888/head
Noah Gorny 2021-05-15 18:58:15 +03:00 committed by GitHub
commit 8c47706139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ function alias_completion {
read -a alias_arg_words <<< "$alias_args" read -a alias_arg_words <<< "$alias_args"
# skip alias if there is no completion function triggered by the aliased command # skip alias if there is no completion function triggered by the aliased command
if [[ ! " ${completions[*]} " =~ $alias_cmd ]]; then if ! _bash-it-array-contains-element "$alias_cmd" "${completions[@]}"; then
if [[ -n "$completion_loader" ]]; then if [[ -n "$completion_loader" ]]; then
# force loading of completions for the aliased command # force loading of completions for the aliased command
eval "$completion_loader $alias_cmd" eval "$completion_loader $alias_cmd"