Small (evolving) guide for my setup to use opencode agents and related tools.
- install opencode
curl -fsSL https://opencode.ai/install | bash
Small (evolving) guide for my setup to use opencode agents and related tools.
curl -fsSL https://opencode.ai/install | bash
| #!/bin/bash | |
| # Define an associative array with command descriptions and commands | |
| declare -A commands=( | |
| ["Cloudflare"]="dig +timeout=5 +short txt ch whoami.cloudflare @1.0.0.1" | |
| ["OpenDNS"]="dig +timeout=5 +short myip.opendns.com @resolver1.opendns.com" | |
| ["Google"]="dig +timeout=5 TXT +short o-o.myaddr.l.google.com @ns1.google.com" | |
| ) | |
| # Function to execute a command and capture output |