Skip to content

Commit

Permalink
CHG: Convention way to install non-package bash completions
Browse files Browse the repository at this point in the history
- The `/etc/bash_completion.d/` is suitable for any distro.
  • Loading branch information
Arano-kai authored and sbstp committed Sep 4, 2020
1 parent bf3fad2 commit 64bbe99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -36,8 +36,13 @@ There is a `kubie` Nix package maintained by @illiusdope that you can install.

### Bash autocomplete
If you want autocompletion for `kubie ctx`, `kubie ns` and `kubie exec`, please install this script:
```bash
sudo cp ./completion/kubie.bash /etc/bash_completion.d/kubie
```
sudo cp ./completion/kubie.bash $(pkg-config --variable=completionsdir bash-completion)/kubie.bash

Then spawn new shell or source copied file:
```bash
. /etc/bash_completion.d/kubie
```

## Usage
Expand Down

0 comments on commit 64bbe99

Please sign in to comment.