From 987362b14848df1dfc02ce2f7c60021ed296e5a9 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Thu, 23 Jan 2020 01:55:45 +0100 Subject: [PATCH] substitute anaconda3 for miniconda3, add to .zshrc --- .bashrc | 8 ++++---- .zshrc | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index 49cde71..8eeb46e 100644 --- a/.bashrc +++ b/.bashrc @@ -120,14 +120,14 @@ export PATH=~/.config/composer/vendor/bin:$PATH # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! -__conda_setup="$('/home/bart/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" +__conda_setup="$('/home/bart/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else - if [ -f "/home/bart/anaconda3/etc/profile.d/conda.sh" ]; then - . "/home/bart/anaconda3/etc/profile.d/conda.sh" + if [ -f "/home/bart/miniconda3/etc/profile.d/conda.sh" ]; then + . "/home/bart/miniconda3/etc/profile.d/conda.sh" else - export PATH="/home/bart/anaconda3/bin:$PATH" + export PATH="/home/bart/miniconda3/bin:$PATH" fi fi unset __conda_setup diff --git a/.zshrc b/.zshrc index e6af238..28095c8 100644 --- a/.zshrc +++ b/.zshrc @@ -111,3 +111,18 @@ eval `dircolors ~/.dir_colors/dircolors` # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/bart/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/bart/miniconda3/etc/profile.d/conda.sh" ]; then + . "/home/bart/miniconda3/etc/profile.d/conda.sh" + else + export PATH="/home/bart/miniconda3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<<