Something went wrong. Try again.
NixOS, nix-darwin and home manager configurations for various my various devices.
nix-darwin nixvim nix nixos
Something went wrong. Try again.
12345678910111213141516171819#!/usr/bin/env bashCOMMIT_MSG_FILE=$1COMMIT_SOURCE=$2SHA1=$3if [[ -z "$COMMIT_SOURCE" ]]then DIFF_OUTPUT=$(git diff --cached) AI_CHAT_OUTPUT=$(echo "$DIFF_OUTPUT" | aichat --role git-commit) CURRENT_MSG=$(cat "$COMMIT_MSG_FILE") { echo "$AI_CHAT_OUTPUT" echo echo "$CURRENT_MSG" } > "$COMMIT_MSG_FILE"fi