* Add Cursor CLI as a coding agent choice * Launch Cursor CLI through its agent subcommand with --trust Cursor CLI still dispatches a one-word prompt that names one of its subcommands (update, login, help) even after a bare --, so name the agent subcommand outright and pass the prompt behind -- there, where it also keeps a prompt starting with a dash from being read as an option. --yolo only auto-allows commands; the workspace trust dialog is skipped only by --trust, and a launcher that must not stop to ask needs both. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Leave an official Cursor CLI install alone Cursor's own installer symlinks ~/.local/bin/cursor-agent, the same path the mise wrapper takes. The migration now installs the wrapper only when no cursor-agent command exists, and Remove Preinstalls deletes the path only when it holds the wrapper omarchy-mise-install wrote, the way the Hermes wrapper is handled. Selecting the agent treats an executable at that path other than the wrapper as the user's own install and skips mise, since the mise shims precede ~/.local/bin on PATH and a mise copy would only shadow it. The wrapper resolves through mise's registry, which lists cursor-agent from 2026.8.15 on. The tests write a real cursor-agent stub before Remove Preinstalls runs, cover the preinstall opt-out for the new migration, and check that a symlinked official install survives removal and selection alike while a dead file at the same path still installs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Give Cursor its brand mark and one name in the menu Add Cursor's mark to the Omarchy icon font as U+E90D and point the agent entry and both editor entries at it, so one brand is drawn one way across the menu. Label the agent entry "Cursor CLI", the name the command and the manual already use, and spell it the same in the migration and the tests. Append the manual row after the others at the standard width. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Keep an official Cursor CLI install through a user re-provision User setup writes every mise wrapper unconditionally, which is fine on a fresh install but replaces the symlink Cursor's own installer leaves at the same path when omarchy-provision-user runs again with --force. Guard that one line the way the migration does. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: John Cavanaugh <59479+cavanaug@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
50 lines
1.7 KiB
Bash
Executable File
50 lines
1.7 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/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
|
|
|
|
# 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
|
|
|
|
# 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
|