Update Readme

This commit is contained in:
Prabhu Jayakumar 2018-06-08 00:35:45 +05:30
parent 9beb1a1587
commit a97ab8367d

View File

@ -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
### 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
| What are others saying about kubectx? |