man page menu completion on another command #287
-
I have a command Edit: I realized that could be workaround by magic expanding the alias with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Have you set |
Beta Was this translation helpful? Give feedback.
-
In commit 54ace59, I have extracted the related code as an independent function With this new interface, you can essentially do something like the following: complete -F _comp_runme runme
_comp_runme() { ble/complete/source:option/generate-for-command myscript.sh "${comp_words[@]:1:comp_cword-1}"; } More careful implementation of The usage of |
Beta Was this translation helpful? Give feedback.
In commit 54ace59, I have extracted the related code as an independent function
ble/complete/source:option/generate-for-command
.With this new interface, you can essentially do something like the following:
More careful implementation of
_comp_runme
can be found here.The usage of
ble/complete/source:option/generate-for-command
is briefly explained in the code comment.