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/sh | |
| # Switch between different opencode auth profiles under ~/.local/share/opencode/auth.json | |
| # Profiles are saved as auth-<profile_name>.json | |
| # Current profile saved in current_profile.txt | |
| die() { | |
| printf '%s\n' "$1" >&2 | |
| exit 1 | |
| } |