summaryrefslogtreecommitdiff
path: root/themes/bira.zsh-theme
diff options
context:
space:
mode:
authorTeddy Masters <teddy.masters@pm.me>2024-07-08 10:23:29 -0400
committerMarc Cornellà <marc@mcornella.com>2024-07-15 19:17:05 +0200
commitbe10a9127731e7c6a9a57f8c8c1789e233117ae9 (patch)
tree63caade0a09baadb26cebc5c71f5c730ecf909e2 /themes/bira.zsh-theme
parent3012c257bc2eaf4d330b43a4a16ff9bcf2efb0e5 (diff)
downloadzsh-be10a9127731e7c6a9a57f8c8c1789e233117ae9.tar.gz
zsh-be10a9127731e7c6a9a57f8c8c1789e233117ae9.tar.bz2
zsh-be10a9127731e7c6a9a57f8c8c1789e233117ae9.zip
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>
Diffstat (limited to 'themes/bira.zsh-theme')
-rw-r--r--themes/bira.zsh-theme3
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/bira.zsh-theme b/themes/bira.zsh-theme
index f909afa62..acfe6dc82 100644
--- a/themes/bira.zsh-theme
+++ b/themes/bira.zsh-theme
@@ -2,6 +2,7 @@ local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n@%m%{$reset_color%} "
local user_symbol='%(!.#.$)'
local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}"
+local conda_prompt='$(conda_prompt_info)'
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
local rvm_ruby='$(ruby_prompt_info)'
@@ -14,7 +15,7 @@ fi
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
-PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
+PROMPT="╭─${conda_prompt}${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
╰─%B${user_symbol}%b "
RPROMPT="%B${return_code}%b"