From c36707f620c1b9296e3f7840984ed16711a690c1 Mon Sep 17 00:00:00 2001 From: hophacker Date: Mon, 21 Jun 2021 13:19:06 +0800 Subject: [PATCH] fix gocode bin not found issue, set PATH with pathAppend --- zsh/prezto-override/zshrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/zsh/prezto-override/zshrc b/zsh/prezto-override/zshrc index c8b52fe..d313eab 100644 --- a/zsh/prezto-override/zshrc +++ b/zsh/prezto-override/zshrc @@ -15,9 +15,7 @@ for config_file ($HOME/.yadr/zsh/*.zsh) source $config_file [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh -export GOPATH=$HOME/go -export PATH="$HOME/.local/bin:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" - export HELM_HOME="$HOME/.helm" - -export PATH="$PATH:$HOME/.rvm/bin" +export GOPATH=$HOME/go +export GOROOT=/usr/local/go +pathAppend "$GOPATH/bin:$HOME/.rvm/bin:$HOME/.local/bin:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin"