Timeline for How do I get bash completion for command aliases?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 9 at 22:50 | comment | added | wjandrea |
"For package autocompletion: complete -c name_of_your_alias " - No, -c stands for "command", not package. "For command autocompletion: complete -F name_of_your_alias " - No, -F means "use this function", not "command", and "this function" doesn't mean "name of your alias". Maybe you meant -f for "file"? Read the manual.
|
|
Jun 9, 2024 at 20:15 | comment | added | dsimic |
Sorry, but executing complete -F name_of_your_alias simply makes no sense. Moreover, it simply fails, because it requires an additional argument.
|
|
Oct 6, 2020 at 18:38 | comment | added | dannysauer | This is great information except for not resolving the situation asked in the question. :) | |
Jun 5, 2019 at 8:20 | comment | added | Rich | Use this instead: unix.stackexchange.com/questions/224227/… | |
Mar 4, 2019 at 9:27 | review | Suggested edits | |||
Mar 4, 2019 at 11:04 | |||||
Feb 28, 2019 at 22:20 | comment | added | Anthony Kong |
complete -F xxx does not work on OSX (It just shows the usage complete: usage: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...] ) . Do you have any pointer? Thanks.
|
|
May 21, 2018 at 3:02 | comment | added | G-Man Says 'Reinstate Monica' | Please don’t continue your answer in comments. If you have things to say, edit them into the answer. | |
May 21, 2018 at 2:49 | history | edited | Adrian Lopez | CC BY-SA 4.0 |
added 49 characters in body
|
May 21, 2018 at 2:44 | review | First posts | |||
May 21, 2018 at 3:02 | |||||
May 21, 2018 at 2:42 | history | answered | Adrian Lopez | CC BY-SA 4.0 |