From 4aa982ced835880092648189eef681f04c47819a Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Thu, 9 Feb 2023 16:29:49 +0100 Subject: [PATCH] Add gopath if go is installed --- zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 6810ba9..bf063a6 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -51,6 +51,10 @@ delzip() { export MITMPROXY_SSLKEYLOGFILE="~/.mitmproxy/sslkeylogfile.txt" [[ -f ~/.zsh/.mac_config ]] && source ~/.zsh/.mac_config +if `which go &>/dev/null`; then + export PATH="$PATH:$(go env GOPATH)/bin" + export GOPATH=$(go env GOPATH) +fi # Powerlevel 10k # Remove padding on right side