From 64bbe9962d86641899326b5dbb95f8495f9cb439 Mon Sep 17 00:00:00 2001 From: Arano-kai Date: Fri, 4 Sep 2020 16:07:16 +0300 Subject: [PATCH] CHG: Convention way to install non-package bash completions - The `/etc/bash_completion.d/` is suitable for any distro. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fe8e1fe..01d5239 100644 --- a/README.md +++ b/README.md @@ -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