Skip to content

Instantly share code, notes, and snippets.

@lifefeel
Last active July 29, 2021 03:01
Show Gist options
  • Save lifefeel/4c807922c3354f3fdbfcfd1b8354e476 to your computer and use it in GitHub Desktop.
Save lifefeel/4c807922c3354f3fdbfcfd1b8354e476 to your computer and use it in GitHub Desktop.
Script to initialize conda when connecting to a shell
# >>> 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