Keep user-managed Dim and Kimi launchers and write Claude settings through fresh private files

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 00:19:55 -04:00
1 parent 23072924c4
commit da6045be3f
5 files changed
+33 -11

No files matched your search

+10 -2
View File
@@ -15,8 +15,7 @@ if gum confirm "Are you sure you want to remove all preinstalled web apps, TUI w
# Remove mise stubs
rm -f ~/.local/bin/codex ~/.local/bin/claude ~/.local/bin/agy ~/.local/bin/copilot \
~/.local/bin/gh ~/.local/bin/opencode ~/.local/bin/playwright ~/.local/bin/playwright-cli ~/.local/bin/pi \
~/.local/bin/omp ~/.local/bin/ori ~/.local/bin/grok ~/.local/bin/crush ~/.local/bin/ghui ~/.local/bin/hunk \
~/.local/bin/dim ~/.local/bin/kimi
~/.local/bin/omp ~/.local/bin/ori ~/.local/bin/grok ~/.local/bin/crush ~/.local/bin/ghui ~/.local/bin/hunk
# Cursor's own installer links ~/.local/bin/cursor-agent as well, so only
# the mise wrapper omarchy-mise-install wrote is a preinstall.
@@ -25,6 +24,15 @@ if gum confirm "Are you sure you want to remove all preinstalled web apps, TUI w
rm -f ~/.local/bin/cursor-agent
fi
# Only Omarchy's mise wrappers for Dim and Kimi are preinstalls.
for wrapper in "dim npm:dimcode" "kimi npm:@moonshot-ai/kimi-code"; do
read -r command package <<<"$wrapper"
if [[ -f ~/.local/bin/$command && ! -L ~/.local/bin/$command ]] &&
grep -qF "mise use -g --quiet \"$package\"" ~/.local/bin/$command; then
rm -f ~/.local/bin/$command
fi
done
# Preserve a user-managed Muse launcher at the same path.
if [[ -f ~/.local/bin/muse && ! -L ~/.local/bin/muse ]] &&
grep -Eq '^mise use -g .*"http:muse\[' ~/.local/bin/muse; then