helm/dev/+go/install

22 lines
471 B
Plaintext
Raw Normal View History

2017-03-18 22:25:46 -07:00
#!/usr/bin/env bash
case $OSTYPE in
darwin*)
brew install go
;;
linux*)
if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S go
fi
;;
esac
2017-04-22 21:22:18 -07:00
[[ $SHELL == *zsh ]] && source "$(dirname "$0")/env.zsh"
if [[ -d "$GOPATH" ]]; then
go get -u github.com/nsf/gocode
go get -u github.com/motemen/gore
go get -u golang.org/x/tools/cmd/guru
go get -u golang.org/x/tools/cmd/gorename
fi