mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-21 23:33:21 +01:00
Update themes/agnoster.zsh-theme
Use basename when setting prompt segment text for the conda environment to avoid overly long promps when using an environment created outside the default location. Co-Authored-By: Avraham Shukron <avraham.shukron@gmail.com>
This commit is contained in:
parent
a6465f839f
commit
ba7a5e68e6
@ -205,7 +205,7 @@ prompt_conda() {
|
||||
local conda_env="$CONDA_DEFAULT_ENV"
|
||||
if [[ -n $conda_env ]]; then
|
||||
if [[ -z $CONDA_PROMPT_MODIFIER ]]; then
|
||||
prompt_segment blue black "conda:$conda_env"
|
||||
prompt_segment blue black "conda:$(basename $conda_env)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user