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
| alias claude="~/.local/bin/claude" | |
| alias cc="claude" | |
| alias ccd="claude --dangerously-skip-permissions" | |
| # claude_execute: Generate exact shell command from natural language with dangerous command detection | |
| claude_execute() { | |
| emulate -L zsh | |
| setopt NO_GLOB | |
| local query="$*" | |
| local prompt="You are a command line expert. The user wants to run a command but they don't know how. Here is what they asked: ${query}. Return ONLY the exact shell command needed. Do not prepend with an explanation, no markdown, no code blocks - just return the raw command you think will solve their query." |