* Add Muse Code as a default coding agent
Meta ships Muse Code only as a binary, so it installs from the AUR
(muse-code-bin) instead of mise, and a fresh install runs the muse login
browser flow in the install terminal before the agent opens.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148qKzr366p2Ubu2igCLvPg
* Refine Muse Code menu and prompt forwarding
* Install Muse Code from OPR
* Install Muse Code through mise's HTTP backend
* Preinstall the Muse mise stub
* Use the shared Muse installation flow
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: David Heinemeier Hansson <david@hey.com>
(cherry picked from commit 0d223fe820)
56 lines
1.9 KiB
Bash
Executable File
56 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Remove preinstalled Omarchy applications (web apps, TUIs, and selected packages).
|
|
|
|
if gum confirm "Are you sure you want to remove all preinstalled web apps, TUI wrappers, and desktop applications?"; then
|
|
echo -e "Removing preinstalled Omarchy applications...\n"
|
|
|
|
omarchy-webapp-remove-all
|
|
omarchy-tui-remove-all
|
|
|
|
mkdir -p ~/.local/state/omarchy
|
|
touch ~/.local/state/omarchy/preinstalls-removed
|
|
hyprctl reload
|
|
|
|
# Remove mise stubs
|
|
rm -f ~/.local/bin/codex ~/.local/bin/claude ~/.local/bin/gemini ~/.local/bin/copilot \
|
|
~/.local/bin/gh ~/.local/bin/opencode ~/.local/bin/playwright ~/.local/bin/playwright-cli ~/.local/bin/pi \
|
|
~/.local/bin/omp ~/.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.
|
|
if [[ -f ~/.local/bin/cursor-agent && ! -L ~/.local/bin/cursor-agent ]] &&
|
|
grep -Eq '^mise use -g .*"cursor-agent"' ~/.local/bin/cursor-agent; then
|
|
rm -f ~/.local/bin/cursor-agent
|
|
fi
|
|
|
|
# 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
|
|
rm -f ~/.local/bin/muse
|
|
fi
|
|
|
|
# Only the wrapper omarchy-install-hermes-cli wrote is a preinstall. Hermes
|
|
# Desktop's command, an official install, or anything else at that path is
|
|
# the user's, so it is the installer that decides whether the wrapper is its
|
|
# own, rather than a copy of its marker kept here.
|
|
if omarchy-install-hermes-cli --owns; then
|
|
rm -f ~/.local/bin/hermes
|
|
fi
|
|
|
|
omarchy-pkg-drop \
|
|
aether \
|
|
cliamp \
|
|
libreoffice-fresh \
|
|
xournalpp \
|
|
pinta \
|
|
obsidian \
|
|
obs-studio \
|
|
kdenlive \
|
|
moonlight-qt \
|
|
lazydocker \
|
|
omacut \
|
|
omacalc \
|
|
omawrite
|
|
fi
|