direnv use ruby improvements

main
Alpha Chen 2 years ago
parent 5aa9755ddb
commit 72fa8f2290
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -19,4 +19,11 @@ use_ruby() {
exit 1 exit 1
fi fi
chruby $ver chruby $ver
layout ruby
# For some reason, the PATH order is unstable and sometimes Ruby's
# bin directory is in front of the direnv one, so force the direnv
# bin directory to take precedence
PATH_add ./.direnv/bin
} }

Loading…
Cancel
Save