a user's aliases should be added to tab completions
Activity
rsteube commentedon Nov 6, 2020
Go this working in my fork by simply adding the aliases as subcommands before the completion generation:
https://github.com/rsteube/gh/blob/master/pkg/cmdutil/completion.go#L23
hjdivad commentedon Nov 12, 2020
FWIW a very simple bash script to wrap the existing completion:
lbesnard commentedon Jul 1, 2021
@hjdivad
this is only good if aliases are one liner. Something along these lines is working better (but not perfect)
$(gh alias list | grep -o -e '^[a-z].*:' | cut -d : -f1)mislav commentedon Aug 12, 2021
Fixed in #3870
tonglil commentedon Nov 4, 2025
Was there a regression in this?
I am not getting tab completions for any aliases.
BagToad commentedon Nov 4, 2025
@tonglil please open a new issue, thank you!