From 6cfcbf321de6d00eeef24781e88d2873bca4011a Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Wed, 30 Oct 2019 09:47:03 +0100 Subject: [PATCH] conda in zshrc --- profiles/base/.zshrc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/profiles/base/.zshrc b/profiles/base/.zshrc index 0d1221c..a47fb95 100644 --- a/profiles/base/.zshrc +++ b/profiles/base/.zshrc @@ -26,3 +26,19 @@ eval "$(fasd --init auto)" # marker [[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh" + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/bauer/conda/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/bauer/conda/etc/profile.d/conda.sh" ]; then + . "/home/bauer/conda/etc/profile.d/conda.sh" + else + export PATH="/home/bauer/conda/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< +