Install mise
Follow the installation guidelines at https://mise.jdx.dev/getting-started.html.
Remove rbenv configuration
Search for rbenv config in .bashrc and .profile and remove it:
eval "$(rbenv init - bash)"
Search for rbenv config in .profile and remove it:
source /home/$user/.rbenvrc
Remove nvm configuration
Search for nvm config in .bashrc and remove it:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Remove everyhing (Ruby and gems) managed by rbenv:
Keep in mind you will have to reinstall Ruby+Gems.
rm -rf ~/.rbenv
Remove everyhing (NodeJS and npm packages) managed by nvm:
Keep in mind you will have to reinstall NodeJS versions and npm packages:
rm -rf ~/.nvm
Add mise Config
Add the following configuration to ~/.config/mise/config.toml
[settings]
idiomatic_version_file_enable_tools = ["ruby", "node"]
[tools]
ruby = "latest"
Posted by Thomas Eisenbarth to makandra dev (2025-11-11 09:15)