On Wed, Mar 30, 2022 at 3:03 PM Wu Zhenyu <[email protected]> wrote:
>
> I notice parallel seem to have no shell completions. It is not convenient.
I have no experience coding those, so I need someone to support/test them.
Instead of having a separate file, I would prefer letting GNU Parallel
generate the completion code. This way the completion code will always
follow the version you are running.
So I am thinking something like:
eval `parallel --shellcompletion zsh`
or similar. So GNU Parallel will generate the shell completion code
for different shell dialects. In practice it should probably generate
this from 'options_hash()' or 'options_hash()' should be generated
from some common data structure.
Do other commands do something similar? In other words: is there a
tried and true way to do this? How are they called?
/Ole