-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure highlight color for current context & namespace #53
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM. Left a few comments below.
README.md
Outdated
|
||
To change background colour to White for highlighting current context: | ||
|
||
`export KUBECTX_CURRENT_FGCOLOR=$(tput setaf 7)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be _BGCOLOR.
README.md
Outdated
@@ -73,6 +73,21 @@ Active namespace is "default". | |||
|
|||
----- | |||
|
|||
### Highlight Current Context | |||
By default, current context is highlighted by yellow foreground & black background |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to include the defaults here. delete this sentence
README.md
Outdated
### 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` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to shorten this section. consider the following rewrite.
Customizing current context colors
If you like to customize the colors indicating the current namespace or context, set the environment variables
KUBECTX_CURRENT_FGCOLOR
andKUBECTX_CURRENT_BGCOLOR
:
export KUBECTX_CURRENT_FGCOLOR=$(tput setaf 6) # blue text export KUBECTX_CURRENT_FGCOLOR=$(tput setaf 7) # white background
Refer color codes here.
README.md
Outdated
@@ -73,6 +73,21 @@ Active namespace is "default". | |||
|
|||
----- | |||
|
|||
### Highlight Current Context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this after "## Installation" and call it the title I described below.
@prabhu43 Thanks for the PR. I only requested a few docs changes, when you have time please take a look. |
@ahmetb I updated the doc with your inputs. |
No description provided.