diff --git a/dev/go/env.zsh b/dev/go/env.zsh new file mode 100644 index 00000000..644ebeef --- /dev/null +++ b/dev/go/env.zsh @@ -0,0 +1,2 @@ +export GOPATH="$HOME/.go" +path=($GOPATH/bin $path) diff --git a/dev/go/install b/dev/go/install new file mode 100644 index 00000000..40c822d7 --- /dev/null +++ b/dev/go/install @@ -0,0 +1,12 @@ +#!/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