#!/bin/fish # Utility that will Prompt a LLM to make a commit message from a git diff. function ia-commit-message echo -e "Write a professional git commit message based on the a diff below. \nDo not preface the commit with anything, use the present tense, return the full sentence, and use the conventional commits specification (: )\n\n-----\n\n$(git diff --staged)" | hailper -p b-code | tee /tmp/prev-ia-commit-message end