Skip to content

Instantly share code, notes, and snippets.

@osmszk
Last active May 8, 2021 23:51
Show Gist options
  • Save osmszk/187909a1a44082b7a9e28a754d401479 to your computer and use it in GitHub Desktop.
Save osmszk/187909a1a44082b7a9e28a754d401479 to your computer and use it in GitHub Desktop.
miniforge3(@m1 Mac)の、condaの初期化コマンド(.zshrcに書き込むもの)
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('~/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "~/miniforge3/etc/profile.d/conda.sh" ]; then
. "~/miniforge3/etc/profile.d/conda.sh"
else
export PATH="~/miniforge3/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