From 20ae3e711b51c1ef3f77e58c85ac1fb0a10f5db4 Mon Sep 17 00:00:00 2001 From: dl92 Date: Sun, 10 Aug 2025 22:06:17 +0100 Subject: [PATCH] init conda/mamba --- home/.zshrc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/home/.zshrc b/home/.zshrc index a390e40..01502c1 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -53,3 +53,32 @@ source ~/code/configs/home/bash-config/rc.functions export QT_AUTO_SCREEN_SCALE_FACTOR=1 export QT_SCREEN_SCALE_FACTORS=1.5 eval "$(gh copilot alias -- zsh)" + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/ys/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/ys/miniforge3/etc/profile.d/conda.sh" ]; then + . "/home/ys/miniforge3/etc/profile.d/conda.sh" + else + export PATH="/home/ys/miniforge3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + + +# >>> mamba initialize >>> +# !! Contents within this block are managed by 'mamba shell init' !! +export MAMBA_EXE='/home/ys/miniforge3/bin/mamba'; +export MAMBA_ROOT_PREFIX='/home/ys/miniforge3'; +__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__mamba_setup" +else + alias mamba="$MAMBA_EXE" # Fallback on help from mamba activate +fi +unset __mamba_setup +# <<< mamba initialize <<<