Skip to content

Commit

Permalink
bashrc: adding the golang default installation to the $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
yml committed Jul 23, 2018
1 parent 6a77ac4 commit 6b25113
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _bashrc
Expand Up @@ -130,12 +130,16 @@ if [[ -d $HOME/.local/bin ]]; then
export PATH=$PATH:$HOME/.local/bin
fi

# Default installation path for GOLANG
if [[ -d /usr/local/go/bin/ ]]; then
export PATH=/usr/local/go/bin:$PATH
fi

if [[ -d $HOME/go ]]; then
export GOROOT=$HOME/go
export PATH=$GOROOT/bin:$PATH
fi


if hash nvim 2>/dev/null; then
# nvim
export EDITOR=nvim
Expand Down

0 comments on commit 6b25113

Please sign in to comment.