From 9cc8018061c0828d185a1b741ca0867cde6aea0e Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Wed, 12 Jan 2022 21:31:10 +0100 Subject: [PATCH] added conda to zsh setup --- zsh/.zshrc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 0e5633b..3f8b29a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -139,4 +139,17 @@ alias log='git log' #neofetch neofetch - +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/paul/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/paul/anaconda3/etc/profile.d/conda.sh" ]; then + . "/home/paul/anaconda3/etc/profile.d/conda.sh" + else + export PATH="/home/paul/anaconda3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<<