Xinqi Bao's Git

feat(mise): manage selected interactive tools
authorXinqi Bao <[email protected]>
Fri, 2 Oct 2026 10:15:45 +0000 (18:15 +0800)
committerXinqi Bao <[email protected]>
Fri, 2 Oct 2026 10:15:45 +0000 (18:15 +0800)
.bashrc
.config/mise/config.toml [new file with mode: 0644]
README.md

diff --git a/.bashrc b/.bashrc
index e697659..6e01dbc 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -28,6 +28,10 @@ ulimit -c unlimited
 #export HTTP_PROXY=$proxy_url
 #export HTTPS_PROXY=$proxy_url
 
 #export HTTP_PROXY=$proxy_url
 #export HTTPS_PROXY=$proxy_url
 
+if command -v mise >/dev/null 2>&1; then
+  eval "$(mise activate bash)"
+fi
+
 # Set up fzf key bindings and fuzzy completion
 eval "$(fzf --bash)"
 export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always --line-range :500 {}'"
 # Set up fzf key bindings and fuzzy completion
 eval "$(fzf --bash)"
 export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always --line-range :500 {}'"
diff --git a/.config/mise/config.toml b/.config/mise/config.toml
new file mode 100644 (file)
index 0000000..9c596b3
--- /dev/null
@@ -0,0 +1,7 @@
+[tools]
+neovim = "0.12"
+tree-sitter = "0.26"
+tmux = "latest"
+fzf = "latest"
+bat = "latest"
+lazygit = "latest"
index f2e50c9..add4ff7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@ Personal configuration for Bash, tmux, Vim, Neovim, C/C++ tooling, and X11. Conf
 ## Contents
 
 - `.bashrc`, `.tmux.conf`: shell and terminal multiplexer settings.
 ## Contents
 
 - `.bashrc`, `.tmux.conf`: shell and terminal multiplexer settings.
+- `.config/mise/config.toml`: optional versions for selected interactive tools.
 - `.vimrc`, `.config/nvim/`: separate Vim and Neovim configurations.
 - `.clang-format`, `.config/clangd/`, `.ycm_extra_conf.py`: C/C++ tooling.
 - `.xinitrc`, `.config/x11/`: X11 startup, resources, and key bindings.
 - `.vimrc`, `.config/nvim/`: separate Vim and Neovim configurations.
 - `.clang-format`, `.config/clangd/`, `.ycm_extra_conf.py`: C/C++ tooling.
 - `.xinitrc`, `.config/x11/`: X11 startup, resources, and key bindings.
@@ -13,6 +14,8 @@ Personal configuration for Bash, tmux, Vim, Neovim, C/C++ tooling, and X11. Conf
 
 Link or copy the relevant files into place, or merge them with existing settings. Editor plugins and external commands generally require separate installation. Review hard-coded paths, display settings, and other machine-specific assumptions before use, then test the affected tools.
 
 
 Link or copy the relevant files into place, or merge them with existing settings. Editor plugins and external commands generally require separate installation. Review hard-coded paths, display settings, and other machine-specific assumptions before use, then test the affected tools.
 
+Optional: [install mise](https://mise.jdx.dev/getting-started.html), link or copy its configuration to `$HOME/.config/mise/config.toml`, then run `mise install` from `$HOME`. Bash activates mise when available; installed tools take precedence on `PATH`. Use `mise upgrade` to update them. mise manages selected interactive tools; system packages and project toolchains remain separate.
+
 ## Maintenance
 
 Prefer each tool's supported commands, APIs, and defaults where they fit the intended workflow. Treat upstream examples as patterns to evaluate against this configuration and environment, not recipes to copy unchanged. Add small local code only for a concrete need.
 ## Maintenance
 
 Prefer each tool's supported commands, APIs, and defaults where they fit the intended workflow. Treat upstream examples as patterns to evaluate against this configuration and environment, not recipes to copy unchanged. Add small local code only for a concrete need.