Compare commits
2 Commits
aa917049ca
...
f33e1b1fb1
Author | SHA1 | Date |
---|---|---|
Pavle Portic | f33e1b1fb1 | |
Pavle Portic | 3f0fb3c19f |
|
@ -146,6 +146,14 @@ prompt_tf() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Kubectl: current active kubeconfig file
|
||||||
|
prompt_kubectl() {
|
||||||
|
local kubeconfig="$KUBECONFIG"
|
||||||
|
if [[ -n $kubeconfig ]]; then
|
||||||
|
prompt_segment magenta black "${config_name}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Status:
|
# Status:
|
||||||
# - was there an error
|
# - was there an error
|
||||||
# - am I root
|
# - am I root
|
||||||
|
@ -174,7 +182,8 @@ build_prompt() {
|
||||||
prompt_aws
|
prompt_aws
|
||||||
prompt_dir
|
prompt_dir
|
||||||
prompt_virtualenv
|
prompt_virtualenv
|
||||||
# prompt_tf
|
prompt_kubectl
|
||||||
|
prompt_tf
|
||||||
prompt_git
|
prompt_git
|
||||||
prompt_end
|
prompt_end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue