From 413cf02099509d62f6cb3e1d6cc9833ebd83f8d4 Mon Sep 17 00:00:00 2001 From: Samuel Ortion Date: Thu, 23 Nov 2023 14:27:12 +0100 Subject: [PATCH] Add miniforge3 --- .loadenv.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.loadenv.sh b/.loadenv.sh index ba29251..38e1a73 100644 --- a/.loadenv.sh +++ b/.loadenv.sh @@ -20,4 +20,22 @@ if type thefuck > /dev/null; then eval $(thefuck --alias) fi +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/sortion/.local/share/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/sortion/.local/share/miniforge3/etc/profile.d/conda.sh" ]; then + . "/home/sortion/.local/share/miniforge3/etc/profile.d/conda.sh" + else + export PATH="/home/sortion/.local/share/miniforge3/bin:$PATH" + fi +fi +unset __conda_setup + +if [ -f "/home/sortion/.local/share/miniforge3/etc/profile.d/mamba.sh" ]; then + . "/home/sortion/.local/share/miniforge3/etc/profile.d/mamba.sh" +fi +# <<< conda initialize <<<