From 11087cf889eb6bad26bd2e1b9f03847f66f0c5e9 Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Sun, 23 Feb 2025 04:06:10 +0100 Subject: [PATCH] [zsh] Fix Go bin path --- zsh/.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 6f85946..9582e57 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -319,7 +319,11 @@ else fi if [[ -d '/usr/local/go/bin' ]]; then - path+=(/usr/local/go/bin "$GOPATH/bin") + path+=(/usr/local/go/bin) +fi + +if [[ -d "$GOPATH/bin" ]]; then + path+=("$GOPATH/bin") fi if [[ -f "$HOME/.local/bin/mise" ]]; then -- 2.54.0