From 30450a57a9130b1495c898dfeebe207750106b21 Mon Sep 17 00:00:00 2001 From: Seth Etter Date: Sun, 28 Dec 2025 21:30:03 -0600 Subject: [PATCH] zsh: claude get code snippet command --- zsh/zshenv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/zshenv b/zsh/zshenv index 54bd43e..2ba0b29 100644 --- a/zsh/zshenv +++ b/zsh/zshenv @@ -147,6 +147,12 @@ function gbrowse() { fi } +function aicode { + claude -p \ + --append-system-prompt "Respond with only the code requested, absolutely no extra dialog, backticks, or anything else. The response should be suitable for directly injecting into a source file. If needed, use the web search tool to look up syntax or documentation to ensure the result is accurate." \ + --allowedTools "WebSearch,WebFetch" \ +} + export HOMEBREW_BUNDLE_FILE="$HOME/dotfiles/Brewfile" eval "$(zoxide init zsh)" -- 2.51.2