From caef18ce132658c9730043557a56e2bda8cfc887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Tue, 7 Nov 2023 16:13:54 +0100 Subject: [PATCH] Update micromamba config --- zsh/.zshrc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index b43400d..3ecc645 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -136,17 +136,13 @@ export GOPATH=/tmp/go # >>> mamba initialize >>> # !! Contents within this block are managed by 'mamba init' !! -export MAMBA_EXE="/usr/bin/micromamba"; +export MAMBA_EXE="$HOME/.local/bin/micromamba"; export MAMBA_ROOT_PREFIX="$HOME/.micromamba"; -__mamba_setup="$('/usr/bin/micromamba' shell hook --shell zsh --prefix '$HOME/.micromamba' 2> /dev/null)" +__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__mamba_setup" else - if [ -f "$HOME/.micromamba/etc/profile.d/micromamba.sh" ]; then - . "$HOME/.micromamba/etc/profile.d/micromamba.sh" - else - export PATH="$HOME/.micromamba/bin:$PATH" # extra space after export prevents interference from conda init - fi + alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate fi unset __mamba_setup # <<< mamba initialize <<<