From 69b19116a98215be3053e2927c8623f4bc646ccb Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Tue, 29 Jul 2025 08:54:53 -0400 Subject: [PATCH] feat: use mise instead of nodenv, pyenv, rubyenv, etc. (#17) --- README.md | 20 ++++++++++++++++++-- bash/.profile | 8 +------- mise/.mise.toml | 5 +++++ 3 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 mise/.mise.toml diff --git a/README.md b/README.md index 8079327..99bac43 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ Personal dotfiles managed with [GNU Stow](https://www.gnu.org/software/stow/). ### Homebrew Packages ```bash -brew install coreutils difftastic font-inconsolata-nerd-font gh git go htop hub neovim node python ripgrep ruby shellcheck stow the_silver_searcher tree-sitter wget +brew install coreutils difftastic font-inconsolata-nerd-font gh git htop hub mise neovim ripgrep shellcheck stow the_silver_searcher tree-sitter wget ``` ## Installation -From within the repository's directory, run the following command to create the symlinks: +From within this repo's directory, run the following command to create the symlinks: ```bash stow * @@ -28,3 +28,19 @@ stow ``` For example: `stow git` + +## Tool Versions + +I use `mise` to manage tool versions. + +1. **Trust the configuration:** + + ```bash + mise trust + ``` + +2. **Install the tools:** + + ```bash + mise install + ``` diff --git a/bash/.profile b/bash/.profile index 10a7055..20eacc8 100644 --- a/bash/.profile +++ b/bash/.profile @@ -24,10 +24,7 @@ fi export HOMEBREW_CASK_OPTS="--appdir=/Applications" export BREW_PREFIX=`brew --prefix` -export RBENV_ROOT=/usr/local/var/rbenv -if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi - -eval "$(nodenv init -)" +eval "$(mise activate bash)" # Locally installed node module binaries export PATH="./node_modules/.bin:$PATH" @@ -35,9 +32,6 @@ export PATH="./node_modules/.bin:$PATH" # Rust binaries export PATH="$HOME/.cargo/bin:$PATH" -# Go binaries -export PATH="$HOME/go/bin:$PATH" - # uv export PATH="$HOME/.local/bin:$PATH" diff --git a/mise/.mise.toml b/mise/.mise.toml new file mode 100644 index 0000000..a0659e7 --- /dev/null +++ b/mise/.mise.toml @@ -0,0 +1,5 @@ +[tools] +ruby = "latest" +python = "latest" +go = "latest" +node = ["22", "24", "20", "18"] -- 2.51.2