From 160c367949045a06f6e95124558d208607193fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 16 Oct 2022 23:16:20 +0200 Subject: [PATCH] Changed the PATH for golang --- .zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 8a4ac6d..e8022bd 100644 --- a/.zshrc +++ b/.zshrc @@ -121,9 +121,6 @@ alias rsync="rsync --progress" export PATH=$HOME/.local/bin:$PATH export PATH=/sbin:$PATH export GOPATH=$HOME/golang -export GOROOT=/usr/lib/go -export PATH=$PATH:$GOPATH/bin -export PATH=$PATH:$GOROOT/bin export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin [ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH export HISTTIMEFORMAT="%F %T " @@ -146,6 +143,9 @@ if [[ "$(uname)" == "Darwin" ]]; then export LDFLAGS="-L/usr/local/opt/openssl@3/lib" export CPPFLAGS="-I/usr/local/opt/openssl@3/include" export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig" + export GOROOT="$(brew --prefix golang)/libexec" + export PATH=$PATH:$GOPATH/bin + export PATH=$PATH:$GOROOT/bin alias lsblk="diskutil list" alias Update="brew update; brew upgrade"