Compare commits

...

2 Commits

Author SHA1 Message Date
Pavle Portic f33e1b1fb1
Add kubectl prompt 2022-04-27 17:24:24 +02:00
Pavle Portic 3f0fb3c19f
Reenable terraform workspace prompt indicator 2022-02-22 11:57:02 +01:00
1 changed files with 10 additions and 1 deletions

View File

@ -146,6 +146,14 @@ prompt_tf() {
fi
}
# Kubectl: current active kubeconfig file
prompt_kubectl() {
local kubeconfig="$KUBECONFIG"
if [[ -n $kubeconfig ]]; then
prompt_segment magenta black "${config_name}"
fi
}
# Status:
# - was there an error
# - am I root
@ -174,7 +182,8 @@ build_prompt() {
prompt_aws
prompt_dir
prompt_virtualenv
# prompt_tf
prompt_kubectl
prompt_tf
prompt_git
prompt_end
}