aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-17 22:05:24 +0800
committerGuangxiong Lin <[email protected]>2023-10-17 22:05:24 +0800
commit7d758a74c7b35bdd3c6e65839e1fad79c5eb6dab (patch)
tree77c645f5589d34d50e849bd29062ff54cdbae1b6
parentf255ecd7dadd2318e8f803d6e0c4684153d03a64 (diff)
downloaddotfiles-7d758a74c7b35bdd3c6e65839e1fad79c5eb6dab.tar.gz
dotfiles-7d758a74c7b35bdd3c6e65839e1fad79c5eb6dab.tar.bz2
dotfiles-7d758a74c7b35bdd3c6e65839e1fad79c5eb6dab.zip
Fix: macos doesn't support user_gemhome
-rwxr-xr-x.path2
1 files changed, 1 insertions, 1 deletions
diff --git a/.path b/.path
index 0add3e8..a367b10 100755
--- a/.path
+++ b/.path
@@ -9,7 +9,7 @@ then
export PATH=$PATH:$(go env GOPATH)/bin
fi
-if command -v gem &> /dev/null; then
+if gem env user_gemhome &> /dev/null; then
export GEM_HOME="$(gem env user_gemhome)"
export PATH="$PATH:$GEM_HOME/bin"
fi