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:
2026-03-20 04:21:33 +02:00
parent 3a1461a647
commit 301ded44f3
3 changed files with 52 additions and 26 deletions

View File

@@ -133,6 +133,15 @@ if command -v brew &> /dev/null; then
fi
fi
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
msgr yay "Cleanup complete! Run 'mise install' to set up tools via mise."