Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidetatsu Yaginuma committed Feb 9, 2021
2 parents dc5ae4b + 1b4dd61 commit 8cee778
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -94,6 +94,8 @@ For example, when you want to pass kubecolor result to grep (`kubecolor get pods
kubectl provides [autocompletion feature](https://kubernetes.io/docs/tasks/tools/install-kubectl/#enable-kubectl-autocompletion). If you are
already using it, you might have to configure it for kubecolor.

#### Bash

Basically, configuring autocompletion for `kubecolor` requires adding following line in your shell config file.

```shell
Expand All @@ -107,6 +109,17 @@ If you are using an alias like `k="kubecolor"`, then just change above like:
complete -o default -F __start_kubectl k
```

#### Zsh

For zsh make sure these lines are present in your zsh config file:
```shell
# get zsh complete kubectl
source <(kubectl completion zsh)
alias kubectl=kubecolor
# make completion work with kubecolor
compdef kubecolor=kubectl
```

Please also refer to [kubectl official doc](https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-autocomplete).

### Specify what command to execute as kubectl
Expand Down

0 comments on commit 8cee778

Please sign in to comment.