« get me outta code hell

zsh, template: go - dotfiles - Miscellaneous configuration files of my personal use
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-20 10:15:41 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-20 10:24:22 -0400
commit095e7cfb90b358a4ffde5b94a87994df23cc43ad (patch)
tree9644827f2a2b3e1668583a463593805c39961106
parente418f4bfe41bd178e8dd7849c58a238031144a05 (diff)
zsh, template: go
-rw-r--r--.zshrc6
-rw-r--r--device/device_template_pre3
2 files changed, 9 insertions, 0 deletions
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"