Skip to content

Commit

Permalink
plugins/{goenv,pyenv}: Add cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 24, 2021
1 parent cd6500d commit dde7ea6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions plugins/goenv/goenv.plugin.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions plugins/pyenv/pyenv.plugin.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dde7ea6

Please sign in to comment.