mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
added a checker for .goenv directory
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
# @chopnico 2021
|
||||
|
||||
# goenv exported variables
|
||||
export GOENV_ROOT="$HOME/.goenv"
|
||||
export PATH="$GOENV_ROOT/bin:$PATH"
|
||||
if [ -d "$HOME/.goenv" ]; then
|
||||
# goenv exported variables
|
||||
export GOENV_ROOT="$HOME/.goenv"
|
||||
export PATH="$GOENV_ROOT/bin:$PATH"
|
||||
|
||||
# Enables goenv shims
|
||||
eval "$(goenv init -)"
|
||||
# Enables goenv shims
|
||||
eval "$(goenv init -)"
|
||||
|
||||
# Allows goenv to manage GOPATH and GOROOT
|
||||
export PATH="$GOROOT/bin:$PATH"
|
||||
export PATH="$PATH:$GOPATH/bin"
|
||||
# Allows goenv to manage GOPATH and GOROOT
|
||||
export PATH="$GOROOT/bin:$PATH"
|
||||
export PATH="$PATH:$GOPATH/bin"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user