diff --git a/zshrc b/zshrc index 9741f0b..f8c40bf 100644 --- a/zshrc +++ b/zshrc @@ -53,6 +53,22 @@ export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv virtualenv-init -)" +# Conda +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/usr/local/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then + . "/usr/local/Caskroom/miniconda/base/etc/profile.d/conda.sh" + else + export PATH="/usr/local/Caskroom/miniconda/base/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + # Man export MANPATH="/usr/local/man:$MANPATH" @@ -416,3 +432,5 @@ alias cleanup="find . -type f -name '*.DS_Store' -ls -delete" # Empty the Trash on all mounted volumes and the main HDD # Also, clear Apple’s System Logs to improve shell startup speed alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl" + +