added conda to bira enviroment

This commit is contained in:
Teddy Masters 2024-07-08 10:23:29 -04:00
commit 3d6c513aa3
2 changed files with 12 additions and 1 deletions

View file

@ -42,3 +42,12 @@ ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
function ruby_prompt_info() {
echo "$(rvm_prompt_info || rbenv_prompt_info || chruby_prompt_info)"
}
# use this to enable users to see their conda env info
conda_prompt_info() {
if [ -n "$CONDA_DEFAULT_ENV" ]; then
echo -n "%{$terminfo[bold]$fg[yellow]%}($CONDA_DEFAULT_ENV) %{$reset_color%}"
else
echo -n ''
fi
}