aboutsummaryrefslogtreecommitdiff
path: root/.path
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-15 22:55:09 +0800
committerGuangxiong Lin <[email protected]>2023-11-15 22:55:09 +0800
commit7de27509734330495fc54235283047c2e74ee8b3 (patch)
tree1f3a16af4e465c872172eea489e5491392d6dc8e /.path
parentdc7e5a5f94cc89c57c4ff7f20f90a55a1a0e6ec4 (diff)
downloaddotfiles-7de27509734330495fc54235283047c2e74ee8b3.tar.gz
dotfiles-7de27509734330495fc54235283047c2e74ee8b3.tar.bz2
dotfiles-7de27509734330495fc54235283047c2e74ee8b3.zip
Refactor
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