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)"