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
# a: Generate exact shell command from natural language using Claude API; reasoning off; no execution; globbing disabled; inserts into buffer | |
export ANTHROPIC_API_KEY="sk-ant-..." | |
export DEFAULT_ANTHROPIC_MODEL="claude-sonnet-4-5" | |
a() { | |
emulate -L zsh | |
setopt NO_GLOB | |
local query="$*" | |
local os_info=$(uname -s) |