Repository navigation
Feature release on top of v0.8.3: vmr migrate turns asdf, vfox or system installs into freeze files, and the cd hook now fires on z/zi jumps and makes cd - work inside lock sessions.
Features
vmr migrate(#280):--asdf,--vfoxand--systemwritemigration_from_asdf.txt,migration_from_vfox.txtandmigration_from_system.txt, each replayed withvmr use -f <file>. The command is read-only: nothing is installed, activated, or written under the other manager's directories, and the flags can be combined in one run.- asdf: reads
$ASDF_DATA_DIR(default~/.asdf) installs and the global pins in~/.tool-versions;ref:builds and interrupted installs are skipped and reported. - vfox: reads
$VFOX_HOMEor the user directory (~/.version-fox, else~/.vfox), honoringstorage.sdkPathand[tools]in the global.vfox.toml. - system: probes common SDK commands on
PATHwith their version flags, skipping binaries owned by vmr, asdf, vfox, nvm, fnm, volta, pyenv, rbenv, sdkman, mise or conda. - Name mapping (
nodejs→node,golang→go,postgres→postgresql,java→jdk,dotnet-core→dotnet) is built in, and an optionalMAPfile (<source> <vmr-sdk>per line) replaces it. Samples generated from the plugin bundle live invmr/docs/migration_map/. - The globally active version is written last per SDK, so a sequential
vmr use -ffinishes on it.
- asdf: reads
- The cd hook runs on zoxide jumps (
#279): bashPROMPT_COMMAND, zshchpwdand the PowerShellpromptwatcher re-run the hook, soz/ziinto a.vmr.lockproject activates its pinned versions;VMR_CDHOOK_LAST_PWDdedupes against thecdalias. cd -works inside lock sessions (#279): the previous directory is seeded throughVMR_SESSION_OLDPWD, and the PowerShellcdhookdelegates toSet-Location, so-,~and provider paths keep working.
Internal changes
- Shell state variables were renamed to say what they hold:
VMR_CD_INIT→VMR_CDHOOK_ACTIVE,VMR_CD_CACHE→VMR_LOCKFILE_DIR(backed bycd_hook.lockfile_dir). Runvmr cdhookonce after upgrading to refresh the shell integration; the stale legacy state file is removed automatically.
Verification
cargo check --workspace --all-targets --lockedcleancargo test --workspace --libpassed- release build reports
vmr 0.8.4(dev)
Full diff: v0.8.3...v0.8.4