From 2577238c86d541b2ff80cccc2d51ae4d9c3a92c0 Mon Sep 17 00:00:00 2001 From: David Park Date: Fri, 28 Apr 2023 16:11:46 +0900 Subject: [PATCH] [featrue] Add conda config at zshrc --- .zshrc.conda | 14 ++++++++++++++ zshrc | 1 + 2 files changed, 15 insertions(+) create mode 100644 .zshrc.conda diff --git a/.zshrc.conda b/.zshrc.conda new file mode 100644 index 0000000..5f878b6 --- /dev/null +++ b/.zshrc.conda @@ -0,0 +1,14 @@ +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/Users/$USER/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/Users/$USER/miniforge3/etc/profile.d/conda.sh" ]; then + . "/Users/$USER/miniforge3/etc/profile.d/conda.sh" + else + export PATH="/Users/$USER/miniforge3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< diff --git a/zshrc b/zshrc index 88bdd32..35c2ca7 100644 --- a/zshrc +++ b/zshrc @@ -25,3 +25,4 @@ plugins=( source $ZSH/oh-my-zsh.sh [ -f "$HOME/.zshrc.local" ] && source ~/.zshrc.local +[ -f "$HOME/.zshrc.conda" ] && source ~/.zshrc.local