mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Simplify and add documentation
This commit is contained in:
parent
4690cebd04
commit
b1400713fc
2 changed files with 34 additions and 11 deletions
|
|
@ -1,12 +1,9 @@
|
|||
function conda_prompt_info(){
|
||||
if command -v pyenv &>/dev/null && [[ $plugins == *"virtualenv"* ]]; then
|
||||
return
|
||||
else
|
||||
[[ -n ${CONDA_DEFAULT_ENV} ]] || return
|
||||
echo "${ZSH_THEME_CONDA_PREFIX=[}${CONDA_DEFAULT_ENV:t:gs/%/%%}${ZSH_THEME_CONDA_SUFFIX=]}"
|
||||
fi
|
||||
[[ -n ${CONDA_DEFAULT_ENV} ]] || return
|
||||
echo "${ZSH_THEME_CONDA_PREFIX=[}${CONDA_DEFAULT_ENV:t:gs/%/%%}${ZSH_THEME_CONDA_SUFFIX=]}"
|
||||
}
|
||||
|
||||
# disables display (${CONDA_DEFAULT_ENV})
|
||||
# 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue