Why I replaced six version managers with mise
Posted on Fri 01 May 2026 in Tooling
My shell setup carried a version manager for every language I touch: pyenv for Python, nodenv for Node, jenv for Java, goenv for Go, tfenv for Terraform and tgenv for Terragrunt. Each one was a git checkout in $HOME with its own installer and shims, and five of them added themselves to PATH when a shell started. I never measured it, but each tool added a noticeable delay to shell startup. Adding Terragrunt last year made the cost concrete: one more clone, one more block, one more thing to remember on a fresh machine. Today mise does the job of all six.
The setup I replaced
The dotfiles are vcsh repositories that mr checks out. Each version manager was one entry like this:
[.pyenv]
checkout = git clone 'https://github.com/pyenv/pyenv.git' .pyenv
push = :
[.tgenv]
checkout = git clone 'https://github.com/tgenv/tgenv.git' .tgenv
push = :
Six entries of that shape, plus node-build as a plugin of nodenv. On the shell side, five of them wanted their own block in .zshrc:
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
if [ -d $PYENV_ROOT/bin ] ; then
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - zsh)"
fi
# goenv
export GOENV_ROOT="$HOME/.goenv"
if [ -d $GOENV_ROOT/bin ] ; then
export PATH="$GOENV_ROOT/bin:$PATH"
export GOENV_GOPATH_PREFIX="$HOME/.cache/go"
eval "$(goenv init -)"
export PATH="$GOROOT/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"
fi
# nodenv, tfenv and tgenv follow the same pattern
No single problem was ever big. Four small ones added up:
- A command per manager for the same task:
pyenv install,nodenv install,jenv add,goenv install,tfenv install,tgenv install. - A version file per manager:
.python-version,.node-version,.java-version,.go-version,.terraform-version,.terragrunt-version. Commit the wrong one and the project still looks fine until someone else clones it. PATHorder decided which manager won, and the order came from where I had pasted the block.- A new tool meant a new clone, a new init block and a test on macOS and Linux.
What mise does differently
mise (originally rtx) is one binary that installs tools, exports environment variables per project and runs tasks. The tool manager is the part that replaces my six:
- One
eval "$(mise activate zsh)"replaces the init blocks. - One command set for every tool:
mise use,mise install,mise ls,mise outdated,mise upgrade. - mise reads
.tool-versionsunchanged, and reads files such as.java-versiononce you enable them for that tool, so projects keep the files they already have. - The registry knows more than 1,000 tools by short name. It covers Python, Node, Java, Go, Terraform and Terragrunt, and installs them into one directory.
The migration
The migration was easy:
Step 1: Install mise. I installed it with Nix on my machines and Homebrew on my work machine.
Step 2: Set the global versions. One command, or one line per tool:
mise use --global python@3.13 node@22 java@temurin-21 go@1.24 terraform@1.11 terragrunt@latest
The version numbers are examples; expect newer releases by the time you read this. The point is that one command covers six tools that used to need six commands.
At the project level, the same command writes the project file:
mise use python@3.13
[tools]
python = "3.13"
Commit mise.toml and the next clone runs mise install.
Step 3: Replace the shell blocks. The five blocks became this:
# mise - unified version manager
if command -v mise &>/dev/null; then
eval "$(mise activate zsh)"
fi
# per-version GOPATH (goenv equivalent)
export GOPATH="$HOME/.cache/go"
[[ -n "$MISE_GO_VERSION" ]] && export GOPATH="$HOME/.cache/go/$MISE_GO_VERSION"
export PATH="$GOPATH/bin:$PATH"
Step 4: Drop the checkouts. I removed the .jenv, .nodenv, .pyenv, .tfenv, .tgenv and .goenv entries from .mrconfig (28 lines) and removed the old directories:
rm -rf ~/.jenv ~/.nodenv ~/.pyenv ~/.tfenv ~/.tgenv ~/.goenv
The one part I had to rebuild: GOPATH
goenv gave every Go version its own GOPATH through GOENV_GOPATH_PREFIX. mise exports the selected version as MISE_GO_VERSION, so three lines in .zshrc keep the behaviour. Without them, go install writes into one shared $GOPATH/bin and the binaries of two Go versions overwrite each other. Everything else was deletion.
What changed in daily use
mise outdatedanswers for all six tools at once, andmise upgrade --bumpmoves the requests inmise.toml.- A tool I need once runs without touching the configuration:
mise exec -- node --version. - mise sets
JAVA_HOMEin an activated shell, so jenv had nothing left to do. - CI installs the same tools from the committed file and runs jobs with
mise exec --, which keeps the pipeline free of version managers.
Caveats
- mise ignores
.java-versionand.terraform-versionuntil you enable idiomatic files for that tool:mise settings add idiomatic_version_file_enable_tools java. Repeat for each tool whose file your projects commit. - One binary now owns six languages. When mise breaks, none of them runs until it works again. That risk buys me five fewer shell blocks, and I accept it.
- A colleague without mise can still use a project that commits
.tool-versions. A project that commitsmise.tomlneeds mise.
Further information
- mise documentation
- Development tools and version files
- Java with mise, including the
JAVA_HOMEbehaviour - Migrating from asdf
- My dotfiles: config-mr and config-zsh