d983d93332ea195326a03bbdee08692b81a8f4a1
- Author
- Pavle Portic <git@theedgeofrage.com>
- Committer
- Pavle Portic <git@theedgeofrage.com>
- Date
Message
Fix kubectl prompt
Diff
1diff --git a/boban.zsh-theme b/boban.zsh-theme
2index 3ec53090d0949cf511dfa2f0a6edda912f04f8b9..f13214c8fa0c1e33481d2d4a190c32146dd4ae59 100644
3--- a/boban.zsh-theme
4+++ b/boban.zsh-theme
5@@ -148,9 +148,8 @@ prompt_tf() {
6
7 # Kubectl: current active kubeconfig file
8 prompt_kubectl() {
9- local kubeconfig="$KUBECONFIG"
10- if [[ -n $kubeconfig ]]; then
11- prompt_segment magenta black "${config_name}"
12+ if [[ -n $KUBECONFIG ]]; then
13+ prompt_segment magenta black "$(basename $KUBECONFIG)"
14 fi
15 }
16