Skip to content

Instantly share code, notes, and snippets.

View daveschumaker's full-sized avatar

Dave Schumaker daveschumaker

View GitHub Profile
@daveschumaker
daveschumaker / .gitconfig
Last active September 1, 2024 16:32 — forked from krzyzanowskim/.gitconfig
commit-ai
[alias]
# need llm CLI: https://llm.datasette.io/en/stable/
# originally based on: https://gist.github.com/karpathy/1dd0294ef9567971c1e4348a90d69285?permalink_comment_id=5167582#gistcomment-5167582
# further modified from: https://gist.github.com/krzyzanowskim/a7faf277cd0b88cbff23bd9b52a4bd2a
commit-ai = "!f() { \
prefix=\"$1\"; \
shift; \
if [[ \"$prefix\" == -* ]]; then \
extra_args=\"$prefix $@\"; \
prefix=\"chore\"; \