From 1743620336247bcc9e64d48510ab2e21b8a25331 Mon Sep 17 00:00:00 2001 From: reonokiy Date: Thu, 13 Feb 2025 22:22:42 +0800 Subject: [PATCH] add micromamba --- dot_config/fish/config.fish | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish index c7c92f8..2261d9e 100644 --- a/dot_config/fish/config.fish +++ b/dot_config/fish/config.fish @@ -2,23 +2,29 @@ set fish_greeting # nix -if command -v nix >/dev/null +if command -v nix > /dev/null fish_add_path ~/.nix-profile/bin end # direnv -if command -v direnv >/dev/null +if command -v direnv > /dev/null direnv hook fish | source set -g direnv_fish_mode eval_on_arrow end # starship -if command -v starship >/dev/null +if command -v starship > /dev/null source (starship init fish --print-full-init | psub) end # zoxide -if command -v zoxide >/dev/null +if command -v zoxide > /dev/null zoxide init fish | source end +# micromamba +if command -v micromamba > /dev/null + set -gx MAMBA_EXE "/usr/bin/micromamba" + set -gx MAMBA_ROOT_PREFIX "/home/oune/.local/share/mamba" + $MAMBA_EXE shell hook --shell fish --root-prefix $MAMBA_ROOT_PREFIX | source +end