This commit is contained in:
John Pocock 2025-12-01 21:42:18 +01:00 committed by GitHub
commit f09f51f2a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -322,6 +322,18 @@ prompt_virtualenv() {
fi
}
# Anaconda: current working conda env
# To replace the conda modification of PS1 do `conda config --set changeps1 False`
# or add 'changeps1: False' to your .condarc file.
prompt_conda() {
local conda_env="$CONDA_DEFAULT_ENV"
if [[ -n $conda_env ]]; then
if [[ -z $CONDA_PROMPT_MODIFIER ]]; then
prompt_segment blue black "conda:$(basename $conda_env)"
fi
fi
}
# Status:
# - was there an error
# - am I root
@ -363,6 +375,7 @@ prompt_terraform() {
build_prompt() {
RETVAL=$?
prompt_status
prompt_conda
prompt_virtualenv
prompt_aws
prompt_terraform