mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-06-22 05:31:58 +00:00
Update Readme
This commit is contained in:
parent
9beb1a1587
commit
a97ab8367d
28
README.md
28
README.md
@ -73,21 +73,6 @@ Active namespace is "default".
|
|||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
### Highlight Current Context
|
|
||||||
By default, current context is highlighted by yellow foreground & black background
|
|
||||||
|
|
||||||
It is configurable by setting environment variables `KUBECTX_CURRENT_FGCOLOR` & `KUBECTX_CURRENT_BGCOLOR`
|
|
||||||
|
|
||||||
To change foreground colour to Blue for highlighting current context:
|
|
||||||
|
|
||||||
`export KUBECTX_CURRENT_FGCOLOR=$(tput setaf 6)`
|
|
||||||
|
|
||||||
To change background colour to White for highlighting current context:
|
|
||||||
|
|
||||||
`export KUBECTX_CURRENT_FGCOLOR=$(tput setaf 7)`
|
|
||||||
|
|
||||||
Refer color codes [here](https://linux.101hacks.com/ps1-examples/prompt-color-using-tput/)
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### macOS
|
### macOS
|
||||||
@ -133,6 +118,19 @@ wiki](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packa
|
|||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
### Customizing current context colors
|
||||||
|
|
||||||
|
If you like to customize the colors indicating the current namespace or context, set the environment variables `KUBECTX_CURRENT_FGCOLOR` and `KUBECTX_CURRENT_BGCOLOR`:
|
||||||
|
|
||||||
|
```
|
||||||
|
export KUBECTX_CURRENT_FGCOLOR=$(tput setaf 6) # blue text
|
||||||
|
export KUBECTX_CURRENT_BGCOLOR=$(tput setaf 7) # white background
|
||||||
|
```
|
||||||
|
|
||||||
|
Refer color codes [here](https://linux.101hacks.com/ps1-examples/prompt-color-using-tput/)
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
#### Users
|
#### Users
|
||||||
|
|
||||||
| What are others saying about kubectx? |
|
| What are others saying about kubectx? |
|
||||||
|
Loading…
Reference in New Issue
Block a user