Install golang via homebrew instead of gvm (Go Version Manager)

This commit is contained in:
2018-05-06 22:52:32 +01:00
parent f6349309b3
commit 872b349d06
3 changed files with 4 additions and 19 deletions

View File

@@ -46,6 +46,7 @@ main() {
git git
git-crypt git-crypt
git-standup git-standup
go
heroku heroku
htop htop
httpie httpie

View File

@@ -102,10 +102,6 @@ install_nvm () {
git_clone 'https://github.com/creationix/nvm.git' "$TARGET/.nvm" git_clone 'https://github.com/creationix/nvm.git' "$TARGET/.nvm"
} }
install_gvm () {
git_clone 'https://github.com/moovweb/gvm.git' "$TARGET/.gvm"
}
install_rustup () { install_rustup () {
curl https://sh.rustup.rs -sSf | sh curl https://sh.rustup.rs -sSf | sh
} }
@@ -161,9 +157,6 @@ case "$1" in
nvm) nvm)
install_nvm install_nvm
;; ;;
gvm)
install_gvm
;;
rustup) rustup)
install_rustup install_rustup
;; ;;

View File

@@ -2,21 +2,12 @@
# Go (golang) environment setup. # Go (golang) environment setup.
# #
export MYGOPATH="$HOME/Projects/Go" export GOPATH="$HOME/.go:$HOME/Projects/Go"
path_prepend "$HOME/.go/bin"
# load gvm path_prepend "$HOME/Projects/Go"
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
# setup GOPATH after loading gvm
export GOPATH="$GOPATH:$MYGOPATH"
path_prepend "$MYGOPATH/bin"
# aliases # aliases
alias gv="govendor" alias gv="govendor"
gvm-use() {
gvm use "$@"
export GOPATH="$GOPATH:$MYGOPATH"
}
install_go_global_packages () { install_go_global_packages () {
local packages=( local packages=(