conda-env.plugin.zsh 484 B

123456789
  1. function conda_prompt_info(){
  2. [[ -n ${CONDA_DEFAULT_ENV} ]] || return
  3. echo "${ZSH_THEME_CONDA_PREFIX=[}${CONDA_DEFAULT_ENV:t:gs/%/%%}${ZSH_THEME_CONDA_SUFFIX=]}"
  4. }
  5. # Has the same effect as `conda config --set changeps1 false`
  6. # - https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#determining-your-current-environment
  7. # - https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#precedence
  8. export CONDA_CHANGEPS1=false