From ba7a5e68e63e454b8dacc41d6f6e9c3c5ddae14b Mon Sep 17 00:00:00 2001 From: John Pocock Date: Sun, 22 Mar 2020 10:47:29 +0000 Subject: [PATCH] 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 --- themes/agnoster.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 501f19376..26962e4fa 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -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 }