====== How to install micromamba ======
===== On UN*X =====
# install micromamba
curl -L https://micro.mamba.pm/install.sh | env \
BIN_FOLDER="$HOME/usr/local/bin" \
PREFIX_LOCATION="$HOME/usr/local/opt/micromamba" \
sh
# create an alias
echo "alias mm=micromamba" >> ~/.bashrc
# source micromamba
source ~/.bashrc
===== On Windows =====
Install [[https://chrisant996.github.io/clink/|Clink]] for autocompletion and advanced command-line features. See [[how to install Clink on Windows]].
rem install micromamba
mkdir %USERPROFILE%\usr\local\bin
curl -L https://github.com/mamba-org/micromamba-releases/releases/latest/download/micromamba-win-64.exe -o %USERPROFILE%\usr\local\bin\micromamba.exe
rem if %USERPROFILE%\usr\local\bin is not in PATH
set PATH=%USERPROFILE%\usr\local\bin;%PATH%
setx PATH %PATH%
rem set the root prefix of micromamba
set MAMBA_ROOT_PREFIX=%USERPROFILE%\usr\local\opt\micromamba
setx MAMBA_ROOT_PREFIX %MAMBA_ROOT_PREFIX%
rem initialize micromamba
micromamba shell init --shell cmd.exe
rem create a doskey
echo doskey mm=micromamba $*>> %LOCALAPPDATA%\clink\clink_start.cmd
rem add the doskey to the current session
%LOCALAPPDATA%\clink\clink_start.cmd