#%Module 1.0module-whatis"Mambaforge 22.11"procModulesHelp{}{putsstdout"Activate mambaforge 22.11"}setspecialuserxsoft
evalset[arraygetenvUSER]if{$USER!=$specialuser}{# for all users except xsoftappend-pathCONDA_PKGS_DIRS"~/.conda/pkgs"append-pathCONDA_ENVS_DIRS"~/.conda/envs"}else{append-pathCONDA_PKGS_DIRS"/gpfs/exfel/sw/software/mambaforge/22.11/pkgs"}prepend-pathPATH/gpfs/exfel/sw/software/mambaforge/22.11/condabin
setenv_CE_CONDA{}setenv_CE_M{}setenvCONDA_EXE/gpfs/exfel/sw/software/mambaforge/22.11/bin/conda
setenvCONDA_PYTHON_EXE/gpfs/exfel/sw/software/mambaforge/22.11/bin/python
setenvCONDA_SHLVL0if{$USER==$specialuser}{# activate base by default for xsoftprepend-pathPATH/gpfs/exfel/sw/software/mambaforge/22.11/bin
setenvCONDA_DEFAULT_ENVbase
setenvCONDA_PREFIX/gpfs/exfel/sw/software/mambaforge/22.11setenvCONDA_PROMPT_MODIFIER"(base) "setenvCONDA_SHLVL1}if{[infocommandsset-function]eq{set-function}}{switch--[module-infoshelltype]{sh{set-function__conda_activate{if[-n"${CONDA_PS1_BACKUP:+x}"];thenPS1="$CONDA_PS1_BACKUP";\unsetCONDA_PS1_BACKUP;fi;\localask_conda;ask_conda="$(PS1="${PS1:-}" __conda_exe shell.posix "$@")"||\return;\eval"$ask_conda";__conda_hashr}set-function__conda_exe{("$CONDA_EXE"$_CE_M$_CE_CONDA"$@")}set-function__conda_hashr{if[-n"${ZSH_VERSION:+x}"];then\rehash;elseif[-n"${POSH_VERSION:+x}"];then:;else\hash-r;fi;fi}set-function__conda_reactivate{\localask_conda;ask_conda="$(PS1="${PS1:-}" __conda_exe shell.posix reactivate)"||\return;\eval"$ask_conda";__conda_hashr}set-function__mamba_exe{(\localMAMBA_CONDA_EXE_BACKUP=$CONDA_EXE;\localMAMBA_EXE=$(\dirname"${CONDA_EXE}")/mamba;"$MAMBA_EXE"$_CE_M$_CE_CONDA"$@")}set-functionconda{\localcmd="${1-__missing__}";case"$cmd"inactivate|deactivate)__conda_activate"$@";;install|update|upgrade|remove|uninstall)__conda_exe"$@"||\return;__conda_reactivate;;*)__conda_exe"$@";;esac}set-functionmamba{\localcmd="${1-__missing__}";case"$cmd"inactivate|deactivate)__conda_activate"$@";;install|update|upgrade|remove|uninstall)__mamba_exe"$@"||\return;__conda_reactivate;;*)__mamba_exe"$@";;esac}}fish{completefishconda{--no-files-a'(__fish_conda_commands)'-n__fish_conda_needs_command}completefishconda{--no-files-a'(__fish_conda_env_commands)'-n'__fish_conda_using_commandenv'}completefishconda{--no-files-a'(__fish_conda_envs)'-n'__fish_conda_using_commandactivate'}completefishconda{--no-files-a'(__fish_conda_packages)'-n'__fish_conda_using_commandremove'}completefishconda{--no-files-a'(__fish_conda_packages)'-n'__fish_conda_using_commanduninstall'}completefishconda{--no-files-a'(__fish_conda_packages)'-n'__fish_conda_using_commandupdate'}completefishconda{--no-files-a'(__fish_conda_packages)'-n'__fish_conda_using_commandupgrade'}set-function__conda_add_prompt{ifset-qCONDA_PROMPT_MODIFIER
set_color-ogreen
echo-n$CONDA_PROMPT_MODIFIERset_colornormal
end}set-function__fish_conda_commands{stringreplace-r'.*_([a-z]+)\.py$''$1'$_CONDA_ROOT/lib/python*/site-packages/conda/cli/main_*.py
forfin$_CONDA_ROOT/bin/conda-*iftest-x"$f"-a!-d"$f"stringreplace-r'^.*/conda-'''"$f"endendechoactivate
echodeactivate}set-function__fish_conda_env_commands{stringreplace-r'.*_([a-z]+)\.py$''$1'$_CONDA_ROOT/lib/python*/site-packages/conda_env/cli/main_*.py}set-function__fish_conda_envs{condaconfig--json--showenvs_dirs|python-c"import json, os, sys; from os.path import isdir, join; print('\n'.join(d for ed in json.load(sys.stdin)['envs_dirs'] if isdir(ed) for d in os.listdir(ed) if isdir(join(ed, d))))"}set-function__fish_conda_needs_command{setcmd(commandline-opc)if[(count$cmd)-eq1-a$cmd[1]=conda]return0endreturn1}set-function__fish_conda_packages{condalist|awk'NR>3{print$1}'}set-function__fish_conda_using_command{setcmd(commandline-opc)if[(count$cmd)-gt1]if[$argv[1]=$cmd[2]]return0endendreturn1}set-function__fish_prompt_orig{}set-function__fish_right_prompt_orig{}set-functionconda{if[(count$argv)-lt1]$CONDA_EXEelseset-lcmd$argv[1]set-eargv[1]switch$cmdcaseactivatedeactivate
eval($CONDA_EXEshell.fish$cmd$argv)caseinstallupdateupgraderemoveuninstall
$CONDA_EXE$cmd$argvandeval($CONDA_EXEshell.fishreactivate)case'*'$CONDA_EXE$cmd$argvendend}set-functionreturn_last_status{return$argv}set-functionmamba{if[(count$argv)-lt1]$CONDA_EXEelseset-lmamba_exe(dirname$CONDA_EXE)/mamba
set-lcmd$argv[1]set-eargv[1]switch$cmdcaseactivatedeactivate
eval($CONDA_EXEshell.fish$cmd$argv)caseinstallupdateupgraderemoveuninstall
$mamba_exe$cmd$argvandeval($CONDA_EXEshell.fishreactivate)case'*'$mamba_exe$cmd$argvendend}}}}