1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 09:40:09 +00: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:
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() { 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