-
Notifications
You must be signed in to change notification settings - Fork 405
Open
Description
Hey there.
A recurring question seems to be how to automatically get completions for aliases. Numerous code snippets and helper functions can be found, e.g. here:
- https://stackoverflow.com/questions/342969/how-do-i-get-bash-completion-to-work-with-aliases
- https://unix.stackexchange.com/questions/4219/how-do-i-get-bash-completion-for-command-aliases
- https://superuser.com/questions/436314/how-can-i-get-bash-to-perform-tab-completion-for-my-aliases
- https://ubuntuforums.org/showthread.php?t=733397
- https://unix.stackexchange.com/questions/216748/how-to-re-use-existing-completion-with-recent-bash-completion
- https://github.com/cykerway/complete-alias/blob/master/complete_alias
It seems that getting it right and especially covering all cases, like support for git or to get aliases completed that already contained arguments, is trickier than a one liner.
I think it would be nice if bash-completion could provide a proper helper for this, i.e. one that covers all cases and solves it reasonably cleanly.
Shipping this with bash-completion would have the great benefit, that sooner or later most distros would get it out-of-the box, while a separate small project has often only little chances to really find its way into all distros.
Cheers,
Chris.
cmoro-deusto, trallnag, pataquets, ju1ius, glumia and 4 more
Metadata
Metadata
Assignees
Labels
No labels