mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-09-21 18:37:09 +00:00
plugins/{goenv,pyenv}: Add cosmetic changes
This commit is contained in:
parent
cd6500d280
commit
dde7ea6395
@ -1,14 +1,14 @@
|
||||
# @chopnico 2021
|
||||
|
||||
if [ -d "$HOME/.goenv" ]; then
|
||||
if [ -d ~/.goenv ]; then
|
||||
# goenv exported variables
|
||||
export GOENV_ROOT="$HOME/.goenv"
|
||||
export PATH="$GOENV_ROOT/bin:$PATH"
|
||||
export GOENV_ROOT=~/.goenv
|
||||
export PATH=$GOENV_ROOT/bin${PATH:+:$PATH}
|
||||
|
||||
# Enables goenv shims
|
||||
eval "$(goenv init -)"
|
||||
eval -- "$(goenv init -)"
|
||||
|
||||
# Allows goenv to manage GOPATH and GOROOT
|
||||
export PATH="$GOROOT/bin:$PATH"
|
||||
export PATH="$PATH:$GOPATH/bin"
|
||||
export PATH=$GOROOT/bin:$PATH
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
fi
|
||||
|
@ -1,8 +1,8 @@
|
||||
# @chopnico 2021
|
||||
|
||||
if [ -d "$HOME/.pyenv" ]; then
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init --path)"
|
||||
eval "$(pyenv init -)"
|
||||
if [ -d ~/.pyenv ]; then
|
||||
export PYENV_ROOT=~/.pyenv
|
||||
export PATH=$PYENV_ROOT/bin${PATH:+:$PATH}
|
||||
eval -- "$(pyenv init --path)"
|
||||
eval -- "$(pyenv init -)"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user