We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee8899 commit 114ba5aCopy full SHA for 114ba5a
rb/.envrc
@@ -6,13 +6,13 @@ if command -v rbenv >/dev/null 2>&1; then
6
7
RBENV_ROOT_DEFAULT="$(rbenv root 2>/dev/null || echo "$HOME/.rbenv")"
8
RUBY_SYMLINK="${RBENV_ROOT_DEFAULT}/versions/${LABEL}"
9
- RUBY_BIN="${RUBY_SYMLINK}/bin/ruby"
+ BIN_DIR="${RUBY_SYMLINK}/bin"
10
11
- # Always track the binary, even if missing now
12
- watch_file "${RUBY_BIN}"
+ # Always track the directory, even if missing now
+ watch_file "${BIN_DIR}"
13
14
- # Only set environment variable if active
15
- if [ -x "${RUBY_BIN}" ]; then
+ # Only set environment variable if directory currently present
+ if [ -d "${BIN_DIR}" ]; then
16
export RBENV_VERSION="${LABEL}"
17
fi
18
0 commit comments