mirror of https://github.com/helm/helm
If a user renames the helm binary, the shell needs to be told that this new name corresponds to the helm completion function. For example if the user decides to rename the helm v3 binary to 'helm3', then the following command extra command would need be run by the user: complete -o default -F __start_helm helm3. This commit automates this by adding this extra command to the generated shell completion script by looking at what binary was used to call the helm completion command. For example, if the user renames the binary to helm3 and then calls helm3 completion bash the completion script will include a hook for the binary 'helm3' to the completion script. A binary rename is one of the two options recommended when users need to run both helm2 and helm3. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>pull/6502/head
parent
681eab83f9
commit
b3857b5d80
Loading…
Reference in new issue