Skip to content

output shell completion script by bat --completion <shell> command #2057

@tigerinus

Description

@tigerinus

Currently the autocompletion script comes only with the source.

A better approach, would be something like bat --completion=bash.

Here is my current bash_completion script executed at login:

source <($HOME/.local/bin/helm completion bash)
source <($HOME/.local/bin/kustomize completion bash)
source <($HOME/.local/bin/pip completion --bash)
source <($HOME/.local/bin/stern --completion=bash)
source <($HOME/.local/node/bin/npm completion)
source $HOME/.local/bat/autocomplete/bat.bash # this can become `bat --completion=bash` 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions