From 1743bebca8038c24bd5ddc5ba0504b7c7dbbbcfc Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Fri, 21 Jun 2024 21:02:20 +0530 Subject: [PATCH] Support conda environement for bira theme --- themes/bira/bira.theme.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/bira/bira.theme.bash b/themes/bira/bira.theme.bash index f30d8d5d00..cba4e425b8 100644 --- a/themes/bira/bira.theme.bash +++ b/themes/bira/bira.theme.bash @@ -6,6 +6,8 @@ SCM_THEME_PROMPT_SUFFIX="›${reset_color?}" VIRTUALENV_THEME_PROMPT_PREFIX=" ${cyan?}‹" VIRTUALENV_THEME_PROMPT_SUFFIX="›${reset_color?}" +CONDAENV_THEME_PROMPT_PREFIX=" ${cyan?}‹" +CONDAENV_THEME_PROMPT_SUFFIX="›${reset_color?}" bold="\[\e[1m\]" @@ -18,7 +20,7 @@ fi function prompt_command() { local current_dir=" ${bold_blue?}\w${normal?}${reset_color?}" local virtualenv_prompt scm_prompt_info - virtualenv_prompt="$(virtualenv_prompt)" + virtualenv_prompt="${virtualenv_prompt:-$(condaenv_prompt)}" scm_prompt_info="$(scm_prompt_info)" PS1="╭─${user_host?}${current_dir}${virtualenv_prompt}${scm_prompt_info}\n╰─${bold?}\\$ ${normal?}" }