mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-03-20 06:06:36 +00:00
refactor(mise): simplify tool management config
Simplify mise activate call in exports (remove dynamic shell detection). Update mise/config.toml for current tool configuration. Add brew autoremove step to cleanup script after removing old version managers.
This commit is contained in:
@@ -503,7 +503,7 @@ export SQLITE_HISTORY="${XDG_CACHE_HOME}/sqlite_history"
|
|||||||
# mise — unified tool version manager
|
# mise — unified tool version manager
|
||||||
# https://mise.jdx.dev
|
# https://mise.jdx.dev
|
||||||
if command -v mise &> /dev/null; then
|
if command -v mise &> /dev/null; then
|
||||||
eval "$(mise activate "$(basename "${SHELL:-bash}")")"
|
eval "$(mise activate bash)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$XDG_CONFIG_HOME/exports-secret" ]; then source "$XDG_CONFIG_HOME/exports-secret"; fi
|
if [ -f "$XDG_CONFIG_HOME/exports-secret" ]; then source "$XDG_CONFIG_HOME/exports-secret"; fi
|
||||||
|
|||||||
@@ -5,45 +5,50 @@ python = "3"
|
|||||||
go = "latest"
|
go = "latest"
|
||||||
rust = "stable"
|
rust = "stable"
|
||||||
|
|
||||||
# Pre-built binaries via ubi (fast — no compilation)
|
# Pre-built binaries via aqua registry
|
||||||
"ubi:sharkdp/fd" = "latest"
|
fd = "latest"
|
||||||
"ubi:BurntSushi/ripgrep" = "latest"
|
ripgrep = "latest"
|
||||||
"ubi:eza-community/eza" = "latest"
|
eza = "latest"
|
||||||
"ubi:ClementTsang/bottom" = "latest"
|
bottom = "latest"
|
||||||
"ubi:ajeetdsouza/zoxide" = "latest"
|
zoxide = "latest"
|
||||||
"ubi:tree-sitter/tree-sitter" = "latest"
|
tree-sitter = "latest"
|
||||||
"ubi:neovim/neovim" = "latest" # Neovim editor binary
|
neovim = "latest" # Neovim editor binary
|
||||||
"ubi:dandavison/delta" = "latest"
|
delta = "latest"
|
||||||
|
difftastic = "latest"
|
||||||
|
|
||||||
# Cargo-based tools (no pre-built binary available)
|
# GitHub releases (no aqua entry)
|
||||||
"cargo:bkt" = "latest"
|
"github:dimo414/bkt" = "latest"
|
||||||
"cargo:difftastic" = "latest"
|
"github:jrmoulton/tmux-sessionizer" = "latest"
|
||||||
"cargo:tmux-sessionizer" = "latest"
|
|
||||||
|
|
||||||
# Go-based tools
|
# Go-compiled tools (no registry binary available)
|
||||||
"go:github.com/google/yamlfmt/cmd/yamlfmt" = "latest"
|
|
||||||
"go:github.com/cheat/cheat/cmd/cheat" = "latest"
|
|
||||||
"go:github.com/charmbracelet/glow" = "latest"
|
|
||||||
"go:github.com/junegunn/fzf" = "latest"
|
|
||||||
"go:github.com/charmbracelet/gum" = "latest"
|
|
||||||
"go:github.com/joshmedeski/sesh/v2" = "latest"
|
"go:github.com/joshmedeski/sesh/v2" = "latest"
|
||||||
"go:github.com/dotzero/git-profile" = "latest"
|
"go:github.com/dotzero/git-profile" = "latest"
|
||||||
|
|
||||||
|
# Registry shorthands (aqua binaries)
|
||||||
|
yamlfmt = "latest"
|
||||||
|
cheat = "latest"
|
||||||
|
glow = "latest"
|
||||||
|
fzf = "latest"
|
||||||
|
gum = "latest"
|
||||||
|
|
||||||
# npm-based tools
|
# npm-based tools
|
||||||
"npm:editorconfig-checker" = "latest"
|
editorconfig-checker = "latest"
|
||||||
"npm:github-release-notes" = "latest"
|
"npm:github-release-notes" = "latest"
|
||||||
"npm:neovim" = "latest" # Node.js client for Neovim's RPC API (required by plugins)
|
"npm:neovim" = "latest" # Node.js client for Neovim's RPC API (required by plugins)
|
||||||
"npm:corepack" = "latest"
|
"npm:corepack" = "latest"
|
||||||
|
|
||||||
# Python tools (via pipx backend)
|
# Python tools (via pipx backend)
|
||||||
"pipx:ansible" = "latest"
|
"pipx:detect-secrets" = "latest"
|
||||||
|
"pipx:git-filter-repo" = "latest"
|
||||||
|
yamllint = "latest"
|
||||||
|
ansible = "latest"
|
||||||
"pipx:ansible-lint" = "latest"
|
"pipx:ansible-lint" = "latest"
|
||||||
"pipx:ruff" = "latest"
|
ruff = "latest"
|
||||||
"pipx:openapi-python-client" = "latest"
|
"pipx:openapi-python-client" = "latest"
|
||||||
|
"pipx:python-lsp-server[websockets]" = "latest"
|
||||||
|
|
||||||
# .NET tools (via dotnet backend)
|
# .NET tools (via dotnet backend)
|
||||||
"dotnet:coverlet.console" = "latest"
|
"dotnet:coverlet.console" = "latest"
|
||||||
"dotnet:csharp-ls" = "latest"
|
|
||||||
"dotnet:csharpier" = "latest"
|
"dotnet:csharpier" = "latest"
|
||||||
"dotnet:ilspycmd" = "latest"
|
"dotnet:ilspycmd" = "latest"
|
||||||
"dotnet:dotnet-ef" = "latest"
|
"dotnet:dotnet-ef" = "latest"
|
||||||
@@ -56,8 +61,12 @@ checkov = "latest"
|
|||||||
grype = "latest"
|
grype = "latest"
|
||||||
pinact = "latest"
|
pinact = "latest"
|
||||||
snyk = "latest"
|
snyk = "latest"
|
||||||
|
cosign = "latest"
|
||||||
|
gitleaks = "latest"
|
||||||
|
syft = "latest"
|
||||||
|
|
||||||
# Dev tools (pre-built binaries)
|
# Dev tools (pre-built binaries)
|
||||||
|
gitui = "latest"
|
||||||
lazygit = "latest"
|
lazygit = "latest"
|
||||||
bat = "latest"
|
bat = "latest"
|
||||||
bats = "latest"
|
bats = "latest"
|
||||||
@@ -66,14 +75,21 @@ cmake = "latest"
|
|||||||
gdu = "latest"
|
gdu = "latest"
|
||||||
github-cli = "latest"
|
github-cli = "latest"
|
||||||
jq = "latest"
|
jq = "latest"
|
||||||
|
hadolint = "latest"
|
||||||
|
hugo = "latest"
|
||||||
|
just = "latest"
|
||||||
|
yq = "latest"
|
||||||
|
"github:exercism/cli" = "latest"
|
||||||
|
"github:projectdiscovery/katana" = "latest"
|
||||||
|
"github:Legit-Labs/legitify" = "latest"
|
||||||
shellcheck = "latest"
|
shellcheck = "latest"
|
||||||
shfmt = "latest"
|
shfmt = "latest"
|
||||||
stylua = "latest"
|
stylua = "latest"
|
||||||
actionlint = "latest"
|
actionlint = "latest"
|
||||||
"aqua:mpalmer/action-validator" = "latest"
|
"aqua:mpalmer/action-validator" = "latest"
|
||||||
oh-my-posh = "latest"
|
oh-my-posh = "latest"
|
||||||
"ubi:o2sh/onefetch" = "latest"
|
"github:o2sh/onefetch" = "latest"
|
||||||
"ubi:wakatime/wakatime-cli" = "latest"
|
"github:wakatime/wakatime-cli" = "latest"
|
||||||
|
|
||||||
# Terraform (replaces tfenv)
|
# Terraform (replaces tfenv)
|
||||||
terraform = "latest"
|
terraform = "latest"
|
||||||
@@ -103,3 +119,4 @@ lockfile = true
|
|||||||
# Save disk space — don't keep downloaded archives or failed installs
|
# Save disk space — don't keep downloaded archives or failed installs
|
||||||
always_keep_download = false
|
always_keep_download = false
|
||||||
always_keep_install = false
|
always_keep_install = false
|
||||||
|
experimental = true
|
||||||
|
|||||||
@@ -133,6 +133,15 @@ if command -v brew &> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Clean up orphaned dependencies left after the removals above
|
||||||
|
if [[ "$DRY_RUN" = "--dry-run" ]]; then
|
||||||
|
msgr warn "[DRY RUN] Would run: brew autoremove"
|
||||||
|
else
|
||||||
|
msgr run "Removing orphaned brew dependencies..."
|
||||||
|
brew autoremove
|
||||||
|
msgr run_done "Orphaned dependencies removed"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msgr yay "Cleanup complete! Run 'mise install' to set up tools via mise."
|
msgr yay "Cleanup complete! Run 'mise install' to set up tools via mise."
|
||||||
|
|||||||
Reference in New Issue
Block a user