Last active
July 29, 2021 03:01
-
-
Save lifefeel/4c807922c3354f3fdbfcfd1b8354e476 to your computer and use it in GitHub Desktop.
Script to initialize conda when connecting to a shell
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
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then | |
. "/opt/anaconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="/opt/anaconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment