mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Install golang via homebrew instead of gvm (Go Version Manager)
This commit is contained in:
@@ -46,6 +46,7 @@ main() {
|
|||||||
git
|
git
|
||||||
git-crypt
|
git-crypt
|
||||||
git-standup
|
git-standup
|
||||||
|
go
|
||||||
heroku
|
heroku
|
||||||
htop
|
htop
|
||||||
httpie
|
httpie
|
||||||
|
|||||||
@@ -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
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -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=(
|
||||||
|
|||||||
Reference in New Issue
Block a user