From 7de27509734330495fc54235283047c2e74ee8b3 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 15 Nov 2023 22:55:09 +0800 Subject: Refactor --- .path | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.path') 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 -- cgit v1.2.3