be10a9127731e7c6a9a57f8c8c1789e233117ae9

Author
Teddy Masters <teddy.masters@pm.me>
Committer
Marc Cornellà <marc@mcornella.com>
Date

Message

feat(bira): add `conda` env information (requires `conda-env` plugin) (#12546)

Closes #10274
Closes #12546

Co-authored-by: elfisworking <zymustb@126.com>
Signed-off-by: elfisworking <zymustb@126.com>

Diff

 1diff --git a/themes/bira.zsh-theme b/themes/bira.zsh-theme
 2index f909afa62b8df03fcbded5384204035ea127967b..acfe6dc8233138588a38eec97c5fef3b44563b5c 100644
 3--- a/themes/bira.zsh-theme
 4+++ b/themes/bira.zsh-theme
 5@@ -2,6 +2,7 @@ local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
 6 local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n@%m%{$reset_color%} "
 7 local user_symbol='%(!.#.$)'
 8 local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}"
 9+local conda_prompt='$(conda_prompt_info)'
10 
11 local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
12 local rvm_ruby='$(ruby_prompt_info)'
13@@ -14,7 +15,7 @@ fi
14 
15 ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
16 
17-PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
18+PROMPT="╭─${conda_prompt}${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
19 ╰─%B${user_symbol}%b "
20 RPROMPT="%B${return_code}%b"
21