diff options
| author | SgtDaJim <junyuan-zhang@hotmail.com> | 2024-02-12 16:43:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-12 09:43:52 +0100 |
| commit | bdcb4d9d1f36d5d82720dfd53f0c95242ab62dae (patch) | |
| tree | 75ae3d1739ff9f9900e5134ccd1f2d970234ce61 /themes/bira.zsh-theme | |
| parent | fff073b55defed72a0a1aac4e853b165f208735b (diff) | |
| download | zsh-bdcb4d9d1f36d5d82720dfd53f0c95242ab62dae.tar.gz zsh-bdcb4d9d1f36d5d82720dfd53f0c95242ab62dae.tar.bz2 zsh-bdcb4d9d1f36d5d82720dfd53f0c95242ab62dae.zip | |
feat(bira): add support for `kube-ps1` prompt (#8437)
Diffstat (limited to 'themes/bira.zsh-theme')
| -rw-r--r-- | themes/bira.zsh-theme | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/bira.zsh-theme b/themes/bira.zsh-theme index 42a70a018..f909afa62 100644 --- a/themes/bira.zsh-theme +++ b/themes/bira.zsh-theme @@ -6,10 +6,15 @@ local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}" local vcs_branch='$(git_prompt_info)$(hg_prompt_info)' local rvm_ruby='$(ruby_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" -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 " RPROMPT="%B${return_code}%b" |
