mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
feat(bira): add support for kube-ps1
prompt (#8437)
This commit is contained in:
parent
fff073b55d
commit
bdcb4d9d1f
@ -6,10 +6,15 @@ local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}"
|
|||||||
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
|
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
|
||||||
local rvm_ruby='$(ruby_prompt_info)'
|
local rvm_ruby='$(ruby_prompt_info)'
|
||||||
local venv_prompt='$(virtualenv_prompt_info)'
|
local venv_prompt='$(virtualenv_prompt_info)'
|
||||||
|
if [[ "${plugins[@]}" =~ 'kube-ps1' ]]; then
|
||||||
|
local kube_prompt='$(kube_ps1)'
|
||||||
|
else
|
||||||
|
local kube_prompt=''
|
||||||
|
fi
|
||||||
|
|
||||||
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
|
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
|
||||||
|
|
||||||
PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}
|
PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
|
||||||
╰─%B${user_symbol}%b "
|
╰─%B${user_symbol}%b "
|
||||||
RPROMPT="%B${return_code}%b"
|
RPROMPT="%B${return_code}%b"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user