mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 06:26:39 +00:00
Install golang via homebrew instead of gvm (Go Version Manager)
This commit is contained in:
@@ -46,6 +46,7 @@ main() {
|
||||
git
|
||||
git-crypt
|
||||
git-standup
|
||||
go
|
||||
heroku
|
||||
htop
|
||||
httpie
|
||||
|
||||
@@ -102,10 +102,6 @@ install_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 () {
|
||||
curl https://sh.rustup.rs -sSf | sh
|
||||
}
|
||||
@@ -161,9 +157,6 @@ case "$1" in
|
||||
nvm)
|
||||
install_nvm
|
||||
;;
|
||||
gvm)
|
||||
install_gvm
|
||||
;;
|
||||
rustup)
|
||||
install_rustup
|
||||
;;
|
||||
|
||||
@@ -2,21 +2,12 @@
|
||||
# Go (golang) environment setup.
|
||||
#
|
||||
|
||||
export MYGOPATH="$HOME/Projects/Go"
|
||||
|
||||
# load gvm
|
||||
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
|
||||
|
||||
# setup GOPATH after loading gvm
|
||||
export GOPATH="$GOPATH:$MYGOPATH"
|
||||
path_prepend "$MYGOPATH/bin"
|
||||
export GOPATH="$HOME/.go:$HOME/Projects/Go"
|
||||
path_prepend "$HOME/.go/bin"
|
||||
path_prepend "$HOME/Projects/Go"
|
||||
|
||||
# aliases
|
||||
alias gv="govendor"
|
||||
gvm-use() {
|
||||
gvm use "$@"
|
||||
export GOPATH="$GOPATH:$MYGOPATH"
|
||||
}
|
||||
|
||||
install_go_global_packages () {
|
||||
local packages=(
|
||||
|
||||
Reference in New Issue
Block a user