-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No profile.d fallback in rc files #2649
Conversation
Does this even work? If you set |
It would because the message is added at the top, then the alias calls into
|
Oh sorry I didn't see the call into Somewhat relatedly, I would actually prefer to see error messages. Maybe we can remove the |
That's a good idea! I think we should delay it unit the user calls |
I propose: # >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE='/home/antoine/workspace/github.com/mamba-org/mamba/build/cmake/micromamba/micromamba';
export MAMBA_ROOT_PREFIX='/home/antoine/workspace/github.com/mamba-org/mamba/foo';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<< And the message
|
Continuation to #2631.
@jonashaag @pavelzw does the error handling seem good to you, or will it be incompatible with #2577?
For readability, current output on my system is: