diff --git a/bash/bashrc b/bash/bashrc index aa56ea8..ecfeed1 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -92,7 +92,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then PATH=$PATH:/usr/local/bin # local binaries PATH=$PATH:${HOME}/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin # Go path - export GOROOT=${HOME}/.homebrew/opt/go/libexec + export GOROOT=$(brew --prefix go)/libexec export GOPATH=${HOME}/Projets/go/ PATH=$PATH:$GOPATH/bin PATH=$PATH:$GOROOT/bin diff --git a/zsh/custom/path.zsh b/zsh/custom/path.zsh index 52a9029..5197cc3 100644 --- a/zsh/custom/path.zsh +++ b/zsh/custom/path.zsh @@ -23,7 +23,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then PATH=$PATH:/usr/local/bin # local binaries PATH=$PATH:${HOME}/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin # Go path - export GOROOT=${HOME}/.homebrew/opt/go/libexec + export GOROOT=$(brew --prefix go)/libexec export GOPATH=${HOME}/Projets/go/ PATH=$PATH:$GOPATH/bin PATH=$PATH:$GOROOT/bin