pyenv
This commit is contained in:
parent
9e56e7ba85
commit
3ed8025e04
27
.zshrc
27
.zshrc
|
@ -198,24 +198,6 @@ else
|
|||
eval "$(zoxide init zsh)"
|
||||
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
|
||||
if [ -f ~/.zsh.local ]; then
|
||||
source ~/.zsh.local
|
||||
|
@ -223,3 +205,12 @@ else
|
|||
touch ~/.zsh.local
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue