diff options
| author | AYO_YO <64309671+AYO-YO@users.noreply.github.com> | 2025-06-08 16:23:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-08 10:23:48 +0200 |
| commit | ac5295678f3325de1a69f9e2a603d69573112d05 (patch) | |
| tree | cedb1e2e070e1b9f72691b18eb8db391e5d612d4 /themes/agnoster.zsh-theme | |
| parent | 95ef2516697aa764d1d4bb93ad3490584cc118ec (diff) | |
| download | zsh-ac5295678f3325de1a69f9e2a603d69573112d05.tar.gz zsh-ac5295678f3325de1a69f9e2a603d69573112d05.tar.bz2 zsh-ac5295678f3325de1a69f9e2a603d69573112d05.zip | |
feat(agnoster): add conda support (#13160)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diffstat (limited to 'themes/agnoster.zsh-theme')
| -rw-r--r-- | themes/agnoster.zsh-theme | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 21c9cf7d5..c99b604b5 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -314,6 +314,9 @@ prompt_dir() { # Virtualenv: current working virtualenv prompt_virtualenv() { + if [ -n "$CONDA_DEFAULT_ENV" ]; then + prompt_segment magenta $CURRENT_FG "🐍 $CONDA_DEFAULT_ENV" + fi if [[ -n "$VIRTUAL_ENV" && -n "$VIRTUAL_ENV_DISABLE_PROMPT" ]]; then prompt_segment "$AGNOSTER_VENV_BG" "$AGNOSTER_VENV_FG" "(${VIRTUAL_ENV:t:gs/%/%%})" fi |
