Skip to content

Instantly share code, notes, and snippets.

View fazzledev's full-sized avatar

Syed Fazil Basheer fazzledev

  • Coimbatore, Tamil Nadu, India
  • X @frayzil
View GitHub Profile
@fazzledev
fazzledev / functions.sh
Created March 14, 2026 12:32
omo-models: Simple bash profile switcher for Oh My OpenCode (Go / Claude / Hybrid)
# OpenCode model family switcher
omo-models() {
local config_dir="$HOME/.config/opencode"
local current=""
# Detect current config
if grep -q "opencode-go" "$config_dir/oh-my-opencode.json" 2>/dev/null && grep -q "anthropic/claude" "$config_dir/oh-my-opencode.json" 2>/dev/null; then
current="hybrid"
elif grep -q "opencode-go" "$config_dir/oh-my-opencode.json" 2>/dev/null; then
current="go"