From d9bbfa659521cb33839965e871308e6d7f6829b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 1 Aug 2022 18:51:13 +0200 Subject: [PATCH] Added the export for WSL --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index 1e7ee0c..34c2ab1 100644 --- a/.zshrc +++ b/.zshrc @@ -128,6 +128,11 @@ 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 " +# Export for WSL +if [[ "$(uname -sr)" =~ "Microsoft" ]]; then + export GOROOT=/usr/lib/go +fi + # Export for Mac if [[ "$(uname)" == "Darwin" ]]; then export PATH="/usr/local/opt/openssl@3/bin:$PATH"