Skip to content

Commit 785cf9d

Browse files
committed
micromamba setup tweaks
1 parent dae82d9 commit 785cf9d

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

dotfiles.org

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,13 +808,19 @@ string-split.
808808
# Micromamba unpacked in home directory, probably a VM or server
809809
set -x MAMBA_ROOT_PREFIX $HOME/micromamba
810810
set -x MAMBA_EXE (which micromamba)
811+
812+
else if test -d "$HOME/.local/share/mamba"
813+
# Micromamba unpacked in .local, probably a VM or server
814+
set -x MAMBA_ROOT_PREFIX $HOME/.local/share/mamba
815+
set -x MAMBA_EXE (which micromamba)
816+
811817
end
812818

813819
if test -d "$HOME/mambaforge"
814820
# Probably a macbook
815821
eval $CONDA_EXE "shell.fish" "hook" $argv | source
816822
source $MAMBA_ROOT_PREFIX/etc/fish/conf.d/mamba.fish
817-
else if test -f "$MAMBA_EXE"
823+
else if test -f "$MAMBA_EXE" # For me, this is usually micromamba
818824
$MAMBA_EXE shell hook --shell fish --root-prefix $MAMBA_ROOT_PREFIX | source
819825
else if test -f "$CONDA_EXE"
820826
# Probably some kind of stock Fedora so fish config is under /etc
@@ -1322,6 +1328,15 @@ Completion for =just=, if installed
13221328
fi
13231329
#+end_src
13241330

1331+
1332+
**** Conda
1333+
#+begin_src bash
1334+
if type -P micromamba > /dev/null; then
1335+
export MAMBA_EXE=$(which micromamba)
1336+
eval "$(micromamba shell hook --shell bash)"
1337+
fi
1338+
#+end_src
1339+
13251340
* Tmux
13261341
:PROPERTIES:
13271342
:header-args: :tangle "tmux/.config/tmux/tmux.conf" :mkdirp yes

0 commit comments

Comments
 (0)