oh-my-bash/plugins/goenv/goenv.plugin.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
330 B
Bash
Raw Normal View History

#! bash oh-my-bash.module
2021-12-14 20:26:40 -05:00
# @chopnico 2021
if [ -d ~/.goenv ]; then
2021-12-14 20:33:58 -05:00
# goenv exported variables
export GOENV_ROOT=~/.goenv
export PATH=$GOENV_ROOT/bin${PATH:+:$PATH}
2021-12-14 20:26:40 -05:00
2021-12-14 20:33:58 -05:00
# Enables goenv shims
eval -- "$(goenv init -)"
2021-12-14 20:26:40 -05:00
2021-12-14 20:33:58 -05:00
# Allows goenv to manage GOPATH and GOROOT
export PATH=$GOROOT/bin:$PATH
export PATH=$PATH:$GOPATH/bin
2021-12-14 20:33:58 -05:00
fi