From 9b390b81d98beea39aa7d6a6e9f739180650648f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 8 Sep 2025 20:00:24 +0200 Subject: [PATCH] Add Go directory to path if Go is installed --- conf.d/go.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf.d/go.fish b/conf.d/go.fish index c508b76..750e5b1 100644 --- a/conf.d/go.fish +++ b/conf.d/go.fish @@ -1,2 +1,4 @@ -set -gx GOPATH $HOME/.local/go -fish_add_path $HOME/.local/go/bin +if command -q go + set -gx GOPATH $HOME/.local/go + fish_add_path $HOME/.local/go/bin +end