Skip to content

How to use helm diff completion bash #871

Open

Description

@tanvp112

Hi,

After issue the command source <(helm diff completion bash), I expect to have command line completion when using helm diff [tab], but the command is not expanded nor provide list of options. The mean time helm command itself can do completion with no issue.

How to make bash completion works for helm-diff?

Thanks!

Activity

  1. yxxhero commented on Oct 23, 2025

    @yxxhero
    Collaborator

    does it work fine in other helm plugins? @tanvp112

  2. tanvp112 commented on Oct 23, 2025

    @tanvp112
    Author

    I only use helm-diff & dt only. dt doesn't support completion bash in the first place.

  3. ngdangtu-vn commented on Jul 11, 2026

    @ngdangtu-vn

    I got the same problem in RaspiOS ARMv7 too. I also tried to installed it (source in .bashrc), it didn't work.

  4. AlexCK-STFC commented on Aug 4, 2026

    @AlexCK-STFC
    $ helm diff completion bash
    # bash completion V2 for diff                                 -*- shell-script -*
    ...
    if [[ $(type -t compopt) = "builtin" ]]; then
        complete -o default -F __start_diff diff
    else
        complete -o default -o nospace -F __start_diff diff
    fi
    
    # ex: ts=4 sw=4 et filetype=sh
    
    $ complete -p diff
    complete -F __start_diff diff
    

    Looks like it's adding the completion for diff, not helm diff

  5. tanvp112 commented on Aug 5, 2026

    @tanvp112
    Author

    @yxxhero to the rescue?

  6. cwrau commented on Aug 20, 2026

    @cwrau
    Contributor

    I came upon this issue on the search for completion for this plugin, did you know about helm/helm#7468?

    As far as I can tell this should allow complection via the normal helm completion $SHELL command also for plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions