Don't load micromamba when not installed

This commit is contained in:
Thomas Avé 2024-03-16 18:22:12 +01:00
parent 1dcd4d0aed
commit 6a93710d8a
1 changed files with 5 additions and 2 deletions

View File

@ -161,8 +161,11 @@ export TERM="screen-256color"
export PATH=$HOME/.local/bin:$PATH
export GOPATH=/tmp/go
eval "$(micromamba shell hook --shell zsh)"
export MAMBA_ROOT_PREFIX="$HOME/.micromamba";
if command -v micromamba &> /dev/null; then
eval "$(micromamba shell hook --shell zsh)"
export MAMBA_ROOT_PREFIX="$HOME/.micromamba";
fi
autoload -Uz add-zsh-hook
eval "$(zoxide init zsh --cmd j)"