Skip to content

Instantly share code, notes, and snippets.

View marvinvr's full-sized avatar
👋

Marvin von Rappard marvinvr

👋
View GitHub Profile
@marvinvr
marvinvr / .zshrc
Created October 8, 2025 12:15
Add "a" command to your terminal that uses Claude to generate a matching command to your query
# 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)