Files

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

16 lines
330 B
Bash
Raw Permalink Normal View History

#! bash oh-my-bash.module
2021-12-14 20:26:40 -05:00
# @chopnico 2021
2021-12-24 22:00:56 +09:00
if [ -d ~/.goenv ]; then
2021-12-14 20:33:58 -05:00
# goenv exported variables
2021-12-24 22:00:56 +09:00
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
2021-12-24 22:00:56 +09:00
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
2021-12-24 22:00:56 +09:00
export PATH=$GOROOT/bin:$PATH
export PATH=$PATH:$GOPATH/bin
2021-12-14 20:33:58 -05:00
fi