From 12590a4a30f34872cde3261352b69d69a7d3f1a5 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 16 Dec 2024 21:03:02 +0100 Subject: [PATCH] go: Add GOPATH to PATH --- .zprofile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.zprofile b/.zprofile index 506d646..4742030 100644 --- a/.zprofile +++ b/.zprofile @@ -37,8 +37,9 @@ if [ -d "$HOME/.cargo/bin" ] ; then fi # if `$HOME/go/bin` exists, add it to $GOPATH -if [ -d "$HOME/go/bin" ] ; then - GOPATH="$HOME/go/bin" +if [ -d "$HOME/.go/bin" ] ; then + GOPATH="$HOME/.go/bin" + PATH="$GOPATH:$PATH" fi # if `/usr/local/go/bin` exists, add it and $GOPATH to $PATH