From 2422635513896685b6439d09a730d4c80c2fbd9e Mon Sep 17 00:00:00 2001 From: John Pocock Date: Thu, 5 Mar 2020 20:39:13 +0000 Subject: [PATCH] Update themes/agnoster.zsh-theme Change conda execution to env variable to improve performance. Co-Authored-By: Avraham Shukron --- themes/agnoster.zsh-theme | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 9f222ee11..6d66f8c4c 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -204,8 +204,7 @@ prompt_virtualenv() { prompt_conda() { local conda_env="$CONDA_DEFAULT_ENV" if [[ -n $conda_env ]]; then - local conda_changeps1="`conda config --show changeps1`" - if [[ $conda_changeps1 == "changeps1: False" && $conda_env != "base" ]]; then + if [[ -z $CONDA_PROMPT_MODIFIER ]]; then prompt_segment blue black "($CONDA_DEFAULT_ENV)" fi fi