Various (but most likely related) issues occur when trying to use completion right after an alias (before adding a space).
If the alias is a single word, possible completions for that word will be displayed instead of completions for commands stating with the alias.
alias x='git'
x<TAB>
# List of all commands starting with the word "git" appear.
# Expected: list of commands that start with "x"
If the alias ends with a part for which completion is supported, completion for that element will display possible replacements for the last part of the alias.
alias gp='git pull'
gp<TAB>
# List of all git command is displayed
# Expected: list of commands that start with "gp"
In all cases, selecting anything from the list will cause an error :
Description
Various (but most likely related) issues occur when trying to use completion right after an alias (before adding a space).
If the alias is a single word, possible completions for that word will be displayed instead of completions for commands stating with the alias.
If the alias ends with a part for which completion is supported, completion for that element will display possible replacements for the last part of the alias.
In all cases, selecting anything from the list will cause an error :
Environment