Skip to content

Commit

Permalink
Add mamba to zshrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jevandezande committed Dec 1, 2022
1 parent f28476e commit 1f671f1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ source $HOME/.dotfiles/zsh/setup.zsh

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup=$("$HOME/progs/anaconda3/bin/conda" "shell.zsh" "hook" 2> /dev/null)
__conda_setup=$("$HOME/progs/mamba/bin/conda" "shell.zsh" "hook" 2> /dev/null)
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "$HOME/progs/anaconda3/etc/profile.d/conda.sh" ]; then
. "$HOME/progs/anaconda3/etc/profile.d/conda.sh"
if [ -f "$HOME/progs/mamba/etc/profile.d/conda.sh" ]; then
. "$HOME/progs/mamba/etc/profile.d/conda.sh"
else
export PATH="$HOME/progs/anaconda3/bin:$PATH"
export PATH="$HOME/progs/mamba/bin:$PATH"
fi
fi
unset __conda_setup

if [ -f "$HOME/progs/mamba/etc/profile.d/mamba.sh" ]; then
. "$HOME/progs/mamba/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<

0 comments on commit 1f671f1

Please sign in to comment.