diff options
| author | Daniel Ochoja <37149152+Ochoja@users.noreply.github.com> | 2024-05-21 19:36:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-21 20:36:07 +0200 |
| commit | 309129f651eeeca62c3a3b7f6817f0ac601db9f0 (patch) | |
| tree | c695470809109e0216f9c9a672d1879678bdcc91 /themes/agnoster.zsh-theme | |
| parent | a779d6563ffb2f0093b4b74c8d5ff0982fa3e930 (diff) | |
| download | zsh-309129f651eeeca62c3a3b7f6817f0ac601db9f0.tar.gz zsh-309129f651eeeca62c3a3b7f6817f0ac601db9f0.tar.bz2 zsh-309129f651eeeca62c3a3b7f6817f0ac601db9f0.zip | |
feat(agnoster): add `anaconda` env information (#12434)
Diffstat (limited to 'themes/agnoster.zsh-theme')
| -rw-r--r-- | themes/agnoster.zsh-theme | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index c2a542163..767a4ed50 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -227,6 +227,14 @@ prompt_virtualenv() { fi } +# Conda Virtualenv +promp_conda_virtualenv() { + if [[ -n $CONDA_PROMPT_MODIFIER ]]; then + prompt_segment black default ${CONDA_PROMPT_MODIFIER:1:-2} + fi +} + + # Status: # - was there an error # - am I root @@ -266,6 +274,7 @@ build_prompt() { prompt_bzr prompt_hg prompt_end + promp_conda_virtualenv } PROMPT='%{%f%b%k%}$(build_prompt) ' |
