Fix default agent setup edge cases
This commit is contained in:
@@ -17,7 +17,7 @@ fi
|
||||
|
||||
case "$1" in
|
||||
pi) agent="pi"; name="Pi" ;;
|
||||
omp | oh-my-pi) agent="omp"; name="Oh My Pi"; agent_package="oh-my-pi" ;;
|
||||
omp | oh-my-pi) agent="omp"; name="Oh My Pi"; agent_package="github:can1357/oh-my-pi" ;;
|
||||
opencode | open-code) agent="opencode"; name="OpenCode" ;;
|
||||
claude | claude-code) agent="claude"; name="Claude Code" ;;
|
||||
codex) agent="codex"; name="Codex" ;;
|
||||
@@ -40,7 +40,11 @@ if ! mise where "$agent_package" &>/dev/null; then
|
||||
fi
|
||||
|
||||
if ! mise use -g "$agent_package"; then
|
||||
[[ $installing == "true" ]] && omarchy-notification-send -g "Could not install $name with mise"
|
||||
if [[ $installing == "true" ]]; then
|
||||
omarchy-notification-send -g "Could not install $name with mise"
|
||||
else
|
||||
omarchy-notification-send -g "Could not set $name as the default coding agent"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -15,7 +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/gemini ~/.local/bin/copilot \
|
||||
~/.local/bin/gh ~/.local/bin/opencode ~/.local/bin/playwright ~/.local/bin/playwright-cli ~/.local/bin/pi \
|
||||
~/.local/bin/ghui ~/.local/bin/hunk
|
||||
~/.local/bin/omp ~/.local/bin/grok ~/.local/bin/crush ~/.local/bin/ghui ~/.local/bin/hunk
|
||||
|
||||
omarchy-pkg-drop \
|
||||
aether \
|
||||
|
||||
Reference in New Issue
Block a user