From db6188d61d1bb5e083fbc9c8a83e6cf194f50095 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 6 Sep 2022 13:47:06 -0500 Subject: [PATCH] update conda inits --- lib/conda.zsh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/conda.zsh b/lib/conda.zsh index 8455962..519163e 100755 --- a/lib/conda.zsh +++ b/lib/conda.zsh @@ -3,20 +3,20 @@ # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! -__conda_setup="$('$HOME/mambaforge/bin/conda' 'shell.zsh' 'hook' 2>/dev/null)" +__conda_setup="$('$HOME/mambaforge/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then - eval "$__conda_setup" + eval "$__conda_setup" else - if [ -f "$HOME/mambaforge/etc/profile.d/conda.sh" ]; then - . "$HOME/mambaforge/etc/profile.d/conda.sh" - else - export PATH="$HOME/mambaforge/bin:$PATH" - fi + if [ -f "$HOME/mambaforge/etc/profile.d/conda.sh" ]; then + . "$HOME/mambaforge/etc/profile.d/conda.sh" + else + export PATH="$HOME/mambaforge/bin:$PATH" + fi fi unset __conda_setup if [ -f "$HOME/mambaforge/etc/profile.d/mamba.sh" ]; then - . "$HOME/mambaforge/etc/profile.d/mamba.sh" + . "$HOME/mambaforge/etc/profile.d/mamba.sh" fi # <<< conda initialize <<< @@ -24,16 +24,16 @@ fi # >>> mamba initialize >>> # !! Contents within this block are managed by 'mamba init' !! -export MAMBA_EXE="/home/daylin/.local/bin/micromamba" -export MAMBA_ROOT_PREFIX="/home/daylin/micromamba" -__mamba_setup="$('/home/daylin/.local/bin/micromamba' shell hook --shell zsh --prefix '/home/daylin/micromamba' 2>/dev/null)" +export MAMBA_EXE="$HOME/.local/bin/micromamba" +export MAMBA_ROOT_PREFIX="$HOME/micromamba" +__mamba_setup="$('$HOME/.local/bin/micromamba' shell hook --shell zsh --prefix '/home/daylin/micromamba' 2>/dev/null)" if [ $? -eq 0 ]; then eval "$__mamba_setup" else - if [ -f "/home/daylin/micromamba/etc/profile.d/micromamba.sh" ]; then - . "/home/daylin/micromamba/etc/profile.d/micromamba.sh" + if [ -f "$HOME/micromamba/etc/profile.d/micromamba.sh" ]; then + . "$HOME/micromamba/etc/profile.d/micromamba.sh" else - export PATH="/home/daylin/micromamba/bin:$PATH" # extra space after export prevents interference from conda init + export PATH="$HOME/micromamba/bin:$PATH" # extra space after export prevents interference from conda init fi fi unset __mamba_setup