From de0cccad039fdf8627da21238953124bf4e4d708 Mon Sep 17 00:00:00 2001 From: shokinn Date: Mon, 11 Mar 2024 13:17:57 +0100 Subject: [PATCH] add gopath/bin to PATH via zshrc --- dotfiles/zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index c2d1f6b..9fc1941 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -186,6 +186,9 @@ if [ -f "{{@@ env['HOME'] @@}}/.local/bin/pipx" ]; then eval "$(register-python-argcomplete pipx)" fi +# Include $(go env GOPATH) to PATH +[[ $(command -v go) ]] && [[ -d "$(go env GOPATH)/bin" ]] && export PATH="$(go env GOPATH)/bin:${PATH}" + {%@@ if profile == 'WVDEWOBMC001307' or profile == 'susanoo.int.r3w.de' @@%} # Decide which homebrew installation (x64_86 / arm64) should be used if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then