Last active
August 28, 2026 14:38
-
-
Save lupodellasleppa/c3e12e4706f688d3406ab964b4f553ea to your computer and use it in GitHub Desktop.
Set agy instead of gemini as agent - OMARCHY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| cd | |
| mise uninstall gemini | |
| mise install agy | |
| cat << 'EOF' > ~/.local/bin/gemini | |
| #!/bin/bash | |
| # Shim translating legacy gemini CLI flags to agy | |
| args=() | |
| while (($#)); do | |
| case "$1" in | |
| --yolo) | |
| args+=(--dangerously-skip-permissions) | |
| shift | |
| ;; | |
| *) | |
| args+=("$1") | |
| shift | |
| ;; | |
| esac | |
| done | |
| exec agy "${args[@]}" | |
| EOF | |
| chmod +x ~/.local/bin/gemini | |
| mkdir -p ~/.config/omarchy/defaults | |
| echo "gemini" > ~/.config/omarchy/defaults/agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment