From: Xinqi Bao Date: Fri, 2 Oct 2026 10:15:45 +0000 (+0800) Subject: feat(mise): manage selected interactive tools X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/commitdiff_plain/4d1e4767b02d290308dbe55f12629b4e68311aea?ds=inline;hp=8da52ea9572302f078821aed54f154ae726d00b4 feat(mise): manage selected interactive tools --- diff --git a/.bashrc b/.bashrc index e697659..6e01dbc 100644 --- a/.bashrc +++ b/.bashrc @@ -28,6 +28,10 @@ ulimit -c unlimited #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 {}'" diff --git a/.config/mise/config.toml b/.config/mise/config.toml new file mode 100644 index 0000000..9c596b3 --- /dev/null +++ b/.config/mise/config.toml @@ -0,0 +1,7 @@ +[tools] +neovim = "0.12" +tree-sitter = "0.26" +tmux = "latest" +fzf = "latest" +bat = "latest" +lazygit = "latest" diff --git a/README.md b/README.md index f2e50c9..add4ff7 100644 --- 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. +- `.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. @@ -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. +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.