Add kubernetes-context segment to powerline

This commit is contained in:
Jeremy Mathevet
2018-11-13 11:25:59 +00:00
parent a8ee759293
commit 7e26ae28bf
8 changed files with 32 additions and 3 deletions

View File

@@ -336,6 +336,10 @@ function ruby_version_prompt {
echo -e "$(rbfu_version_prompt)$(rbenv_version_prompt)$(rvm_version_prompt)$(chruby_version_prompt)"
}
function k8s_context_prompt {
echo -e "$(kubectl config current-context)"
}
function virtualenv_prompt {
if [[ -n "$VIRTUAL_ENV" ]]; then
virtualenv=`basename "$VIRTUAL_ENV"`