diff options
author | venyii <codesguard@cersei.de> | 2019-07-07 21:29:03 +0300 |
---|---|---|
committer | venyii <codesguard@cersei.de> | 2019-07-07 21:29:03 +0300 |
commit | 9ed04d1969a254ecdcbe68c931db05cbc3382550 (patch) | |
tree | af393fe660f29c287fa8705621e280997d870a99 /EXTENDED_CONFIGURATION.md | |
parent | c140d38695ee75fa29b8d6f34ffdbf135afa86c6 (diff) |
Revert "Add ability to provide a cluster function in kubecontext segment"
This reverts commit a9d99c9cab69bd52edd3584ea426d8dacd6e8929.
Only a74603d30f2e1fbbffc53346382ac280725a06c6 was supposed to be merged
in https://github.com/romkatv/powerlevel10k/pull/106
Diffstat (limited to 'EXTENDED_CONFIGURATION.md')
-rw-r--r-- | EXTENDED_CONFIGURATION.md | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/EXTENDED_CONFIGURATION.md b/EXTENDED_CONFIGURATION.md index ced06cd2..048f3bf2 100644 --- a/EXTENDED_CONFIGURATION.md +++ b/EXTENDED_CONFIGURATION.md @@ -43,19 +43,6 @@ another You can pick up a fix for the latter from [a fork of zsh](https://github.com/romkatv/zsh/tree/gentle-reset-prompt). -`POWERLEVEL9K_KUBECONTEXT_CONTEXT_FUNCTION (FUNCTION) [default=""]` - -Add your own function to modify the k8s context name, e.g. remove superfluous information: - -```bash -# Input: gke_project-name-1337_europe-west1-c_production/ns -# Output: production -function k8s_context_short() { - echo "$1" | sed -E 's/.*-[a-z]_(.*)\/.*/\1/' -} -POWERLEVEL9K_KUBECONTEXT_CONTEXT_FUNCTION="k8s_context_short" -``` - When using gitstatus, there is an extra state called `LOADING` that is used by `vcs` prompt segment when it's waiting for git status in the background. You can define styling for this state the same way as for the other states -- `CLEAN`, `UNTRACKED` and `MODIFIED`. You can |