Skip to content

Commit

Permalink
Merge pull request #1877 from NoahGorny/fix-alias-completion-for-real
Browse files Browse the repository at this point in the history
plugins: Fix alias-completion by comparing completions to alias literally
  • Loading branch information
Noah Gorny authored May 15, 2021
2 parents 476c568 + 2120be9 commit 8c47706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/available/alias-completion.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function alias_completion {
read -a alias_arg_words <<< "$alias_args"

# 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
# force loading of completions for the aliased command
eval "$completion_loader $alias_cmd"
Expand Down

0 comments on commit 8c47706

Please sign in to comment.