mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
15 lines
310 B
Bash
15 lines
310 B
Bash
# @chopnico 2021
|
|
|
|
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 -)"
|
|
|
|
# Allows goenv to manage GOPATH and GOROOT
|
|
export PATH="$GOROOT/bin:$PATH"
|
|
export PATH="$PATH:$GOPATH/bin"
|
|
fi
|