From 3ac4d3418db7cf4eb4c4cdce934b2d0832e8cdf9 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 26 Nov 2023 14:16:17 +0100 Subject: [PATCH] conda --- .zshrc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.zshrc b/.zshrc index b3f96a3..fdf55d5 100644 --- a/.zshrc +++ b/.zshrc @@ -197,3 +197,19 @@ then else eval "$(zoxide init zsh)" fi + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/plex/.local/share/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/plex/.local/share/miniconda3/etc/profile.d/conda.sh" ]; then + . "/home/plex/.local/share/miniconda3/etc/profile.d/conda.sh" + else + export PATH="/home/plex/.local/share/miniconda3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< +