From 095e7cfb90b358a4ffde5b94a87994df23cc43ad Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 20 Jan 2025 10:15:41 -0400 Subject: zsh, template: go --- .zshrc | 6 ++++++ device/device_template_pre | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 1de48ad..3c92d3b 100644 --- a/.zshrc +++ b/.zshrc @@ -55,6 +55,12 @@ path+=("$HOME/bin") # //// third party configuration ////////////////////////////// <3rd-conf> // # +# -- Go -- + +if [[ -v DEVICE_HAS_GO ]]; then + export GOPATH=$DEVICE_GO_INSTALLATION +fi + # -- GPG -- if [[ -v DEVICE_HAS_GPG ]]; then diff --git a/device/device_template_pre b/device/device_template_pre index 470c210..480c89c 100644 --- a/device/device_template_pre +++ b/device/device_template_pre @@ -52,6 +52,9 @@ export DEVICE_HAS_GPG +export DEVICE_HAS_GO +export DEVICE_GO_INSTALLATION="$HOME/go" + export DEVICE_HAS_HOMEBREW export DEVICE_HOMEBREW_INSTALLATION="/opt/homebrew" -- cgit 1.3.0-6-gf8a5