Skip to content

Commit c0f5273

Browse files
committed
fix: default wasn't being persisted.
1 parent 34a6fcf commit c0f5273

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

fn/czruby_setup

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,10 @@ EOF
5151
done
5252
unset ruby_root ruby_ver ruby_eng key gem_home
5353
}
54+
# Read the persisted default from the symlink if it exists
55+
if [[ -L "$czruby_datadir/default" ]]; then
56+
local persisted_default=$(czruby_realpath "$czruby_datadir/default")
57+
RUBIES_DEFAULT="${persisted_default:t}"
58+
fi
5459
czruby_set_default "$RUBIES_DEFAULT"
5560

0 commit comments

Comments
 (0)