diff --git a/.zshrc.conda b/.zshrc.conda new file mode 100644 index 0000000..5f878b6 --- /dev/null +++ b/.zshrc.conda @@ -0,0 +1,14 @@ +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/Users/$USER/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/Users/$USER/miniforge3/etc/profile.d/conda.sh" ]; then + . "/Users/$USER/miniforge3/etc/profile.d/conda.sh" + else + export PATH="/Users/$USER/miniforge3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< diff --git a/zshrc b/zshrc index 88bdd32..35c2ca7 100644 --- a/zshrc +++ b/zshrc @@ -25,3 +25,4 @@ plugins=( source $ZSH/oh-my-zsh.sh [ -f "$HOME/.zshrc.local" ] && source ~/.zshrc.local +[ -f "$HOME/.zshrc.conda" ] && source ~/.zshrc.local