Skip to content

Commit 24c8716

Browse files
authored
Documenting how to get Bash completion in Krew mode (#240)
1 parent 7131af2 commit 24c8716

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,13 @@ source "$(brew --prefix)/etc/profile.d/bash_completion.sh"
287287
source <(stern --completion=bash)
288288
```
289289

290+
If installed via Krew, use:
291+
292+
```bash
293+
source <(kubectl stern --completion bash)
294+
complete -o default -F __start_stern kubectl stern
295+
```
296+
290297
If you use zsh, just source the stern zsh completion code in `.zshrc`.
291298

292299
```sh

0 commit comments

Comments
 (0)