mirror of
https://github.com/meineerde/dotfiles.git
synced 2025-10-17 19:41:01 +00:00
Cleaner pyenv setup in case it is in a non-standard location or missing altogether
This commit is contained in:
parent
be1e716cd8
commit
318328ffa8
6
.bashrc
6
.bashrc
@ -157,9 +157,11 @@ export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||
|
||||
# pyenv
|
||||
if command -v pyenv 1>/dev/null 2>&1; then
|
||||
eval "$(pyenv init -)"
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
if ! command -v pyenv 1>/dev/null 2>&1 && [[ -d "$PYENV_ROOT/bin" ]]; then
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
fi
|
||||
command -v pyenv 1>/dev/null 2>&1 && eval "$(pyenv init -)"
|
||||
|
||||
# Appliction config
|
||||
export PLANIO_SKIP_AMA=1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user