From 45b230b2979a221bf1bcde5fee65d03bb8a9637e Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 17 May 2023 13:33:04 -0700 Subject: [PATCH] Using with a shell --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 0291959..39fe667 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,14 @@ To switch from ChatGPT 3.5 (the default) to GPT-4 if you have access: Pass `--model ` to use a different model. +### Using with a shell + +To generate a description of changes made to a Git repository since the last commit: + + llm "Describe these changes: $(git diff)" + +This pattern of using `$(command)` inside a double quoted string is a useful way to quickly assemble prompts. + ## System prompts You can use `--system '...'` to set a system prompt.