mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-24 14:50:07 +00:00
70cfff448d
Co-authored-by: Jeonguk Choi <91456421+devj121@users.noreply.github.com>
9 lines
484 B
Bash
9 lines
484 B
Bash
function conda_prompt_info(){
|
|
[[ -n ${CONDA_DEFAULT_ENV} ]] || return
|
|
echo "${ZSH_THEME_CONDA_PREFIX=[}${CONDA_DEFAULT_ENV:t:gs/%/%%}${ZSH_THEME_CONDA_SUFFIX=]}"
|
|
}
|
|
|
|
# Has the same effect as `conda config --set changeps1 false`
|
|
# - https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#determining-your-current-environment
|
|
# - https://conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html#precedence
|
|
export CONDA_CHANGEPS1=false
|