aboutsummaryrefslogtreecommitdiff
path: root/.path
diff options
context:
space:
mode:
Diffstat (limited to '.path')
-rwxr-xr-x.path5
1 files changed, 4 insertions, 1 deletions
diff --git a/.path b/.path
index b9b5769..844df14 100755
--- a/.path
+++ b/.path
@@ -9,7 +9,10 @@ then
export PATH=$PATH:$(go env GOPATH)/bin
fi
-if gem env user_gemhome &> /dev/null; then
+# gem env is quite slow in macos.
+# Don't set the environment variables as mitigation.
+if [ ! $(uname) = Darwin ] &&
+ gem env user_gemhome &> /dev/null; then
export GEM_HOME="$(gem env user_gemhome)"
export PATH="$PATH:$GEM_HOME/bin"
fi