From 2de2c465f9d7570cd07b17a607632cee0681f0ac Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Wed, 13 Oct 2021 11:42:24 -0500 Subject: [PATCH] Add go bin path --- zshenv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshenv b/zshenv index 38d233b..97fda03 100644 --- a/zshenv +++ b/zshenv @@ -17,6 +17,12 @@ if (( $+commands[ruby] )); then [[ -d "$gem_bin_path" ]] && path+=("$gem_bin_path") fi +# Setup go paths +if (( $+commands[go] )); then + local go_bin_path="$(go env GOPATH)/bin" + [[ -d "$go_bin_path" ]] && path+=("$go_bin_path") +fi + if (( $+commands[fd] )); then export FZF_DEFAULT_COMMAND="fd --type f" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"