Parent directory

conda-env.plugin.zsh

484 bytes
1function 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
6# Has the same effect as `conda config --set changeps1 false`
7# - https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#determining-your-current-environment
8# - https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#precedence
9export CONDA_CHANGEPS1=false