You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a user's aliases should be added to tab completions
Reacted by Toshiya Doi, Adin Klotz, Alex Efros, Kevin Locke, Pierre Rhault, Rashedul Islam, Kasper Wiese, biggles-cmd, Kevin van Zonneveld, Alfonso Montero López and 6 more
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!