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

Commit

Permalink
some README fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidetatsu Yaginuma committed Feb 17, 2021
1 parent d22984e commit 45ed4d3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Expand Up @@ -99,10 +99,11 @@ 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.
Please also refer to [kubectl official doc for kubectl autorcomplete](https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-autocomplete).

#### Bash

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

```shell
# autocomplete for kubecolor
Expand All @@ -126,15 +127,16 @@ alias kubectl=kubecolor
compdef kubecolor=kubectl
```

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

Fish completion is unsupported because fish completion is officially not supported by kubectl.

### Specify what command to execute as kubectl

Sometimes, you may want to specify what to command to use as `kubectl`. For example,
when you want to use a versioned-kubectl `kubectl.1.17`, you can do that by an environment variable:
Sometimes, you may want to specify which command to use as `kubectl` internally in kubecolor. For example, when you want to use a versioned-kubectl `kubectl.1.19`, you can do that by an environment variable:

```shell
KUBECTL_COMMAND="kubectl.1.17" kubecolor get po
KUBECTL_COMMAND="kubectl.1.19" kubecolor get po
```

When you don't set `KUBECTL_COMMAND`, then `kubectl` is used by default.
Expand Down

0 comments on commit 45ed4d3

Please sign in to comment.