mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Update themes/agnoster.zsh-theme
Change conda execution to env variable to improve performance. Co-Authored-By: Avraham Shukron <avrahamshukron@users.noreply.github.com>
This commit is contained in:
parent
e501f8aace
commit
2422635513
1 changed files with 1 additions and 2 deletions
|
@ -204,8 +204,7 @@ prompt_virtualenv() {
|
||||||
prompt_conda() {
|
prompt_conda() {
|
||||||
local conda_env="$CONDA_DEFAULT_ENV"
|
local conda_env="$CONDA_DEFAULT_ENV"
|
||||||
if [[ -n $conda_env ]]; then
|
if [[ -n $conda_env ]]; then
|
||||||
local conda_changeps1="`conda config --show changeps1`"
|
if [[ -z $CONDA_PROMPT_MODIFIER ]]; then
|
||||||
if [[ $conda_changeps1 == "changeps1: False" && $conda_env != "base" ]]; then
|
|
||||||
prompt_segment blue black "($CONDA_DEFAULT_ENV)"
|
prompt_segment blue black "($CONDA_DEFAULT_ENV)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue