From 9157420670ab1a3fa55b76253b2b8a845d1e2dbd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 19 Mar 2017 01:25:46 -0400 Subject: [PATCH] Add dev/go --- dev/go/env.zsh | 2 ++ dev/go/install | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 dev/go/env.zsh create mode 100644 dev/go/install 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