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:
John Pocock 2020-03-05 20:39:13 +00:00 committed by GitHub
parent e501f8aace
commit 2422635513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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