309129f651eeeca62c3a3b7f6817f0ac601db9f0

Author
Daniel Ochoja <37149152+Ochoja@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(agnoster): add `anaconda` env information (#12434)

Diff

 1diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
 2index c2a5421637d0e62cc31882234bffd081223dd988..767a4ed50f742faeafe109151abca324bd2c68b2 100644
 3--- a/themes/agnoster.zsh-theme
 4+++ b/themes/agnoster.zsh-theme
 5@@ -227,6 +227,14 @@ prompt_virtualenv() {
 6   fi
 7 }
 8 
 9+# Conda Virtualenv
10+promp_conda_virtualenv() {
11+  if [[ -n $CONDA_PROMPT_MODIFIER ]]; then
12+    prompt_segment black default ${CONDA_PROMPT_MODIFIER:1:-2}
13+  fi
14+}
15+
16+
17 # Status:
18 # - was there an error
19 # - am I root
20@@ -266,6 +274,7 @@ build_prompt() {
21   prompt_bzr
22   prompt_hg
23   prompt_end
24+  promp_conda_virtualenv
25 }
26 
27 PROMPT='%{%f%b%k%}$(build_prompt) '