-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Julien Jerphanion <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
echo "WARNING: ${CONDA_DIR}/etc/profile.d/mamba.sh (the file emitting this warning) is deprecated." | ||
echo "WARNING: This file will be removed in mamba 2.1.0." | ||
echo "WARNING: Please use 'mamba shell init' to get the correct shell scripts for your shell." | ||
|
||
if [ -z "${MAMBA_ROOT_PREFIX}" ]; then | ||
echo "WARNING: The MAMBA_ROOT_PREFIX environment variable is not set." | ||
echo "WARNING: This is required for mamba to work correctly as of 2.0." | ||
echo "WARNING: " | ||
echo "WARNING: For now, we are setting 'MAMBA_ROOT_PREFIX' to '${CONDA_DIR}'." | ||
echo "WARNING: " | ||
echo "WARNING: Please make sure this is consistent with your installation or alternatively (by order of preference):" | ||
echo "WARNING: - rerun 'mamba shell init -s posix' to get the correct value" | ||
echo "WARNING: - manually set 'MAMBA_ROOT_PREFIX' to the root of your installation in your shell profile script." | ||
echo "WARNING: - use the '-r,--root-prefix' CLI option when calling mamba." | ||
echo "WARNING: " | ||
echo "WARNING: This message originates from ${CONDA_DIR}/etc/profile.d/mamba.sh" | ||
export MAMBA_ROOT_PREFIX="${CONDA_DIR}" | ||
fi | ||
|
||
__mamba_setup="$("${CONDA_DIR}/bin/mamba" shell hook --shell posix 2> /dev/null)" | ||
if [ $? -eq 0 ]; then | ||
eval "$__mamba_setup" | ||
else | ||
alias mamba="${CONDA_DIR}/bin/mamba" # Fallback on help from mamba activate | ||
fi | ||
unset __mamba_setup | ||
|