This commit is contained in:
Christoph J. Scherr 2024-03-04 10:16:16 +01:00 committed by PlexSheep
parent 9e56e7ba85
commit 3ed8025e04
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 11 additions and 20 deletions

27
.zshrc
View File

@ -198,24 +198,6 @@ else
eval "$(zoxide init zsh)" eval "$(zoxide init zsh)"
fi fi
### --- conda Config -------------------------------------
# >>> 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 <<<
# we don't want to see (base) constantly, so we do this:
PS1=$(echo $PS1 | sed 's/(base) //') # remove base
### load unversioned zsh code ### load unversioned zsh code
if [ -f ~/.zsh.local ]; then if [ -f ~/.zsh.local ]; then
source ~/.zsh.local source ~/.zsh.local
@ -223,3 +205,12 @@ else
touch ~/.zsh.local touch ~/.zsh.local
fi fi
### --- pyenv Config -------------------------------------
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
if pyenv activate std; then
;
else
pyenv virtualenv std && pyenv activate std
fi