Quellcode durchsuchen

feat: update ac alias to use staged diff and improved commit message prompt

Tom McKenzie vor 6 Monaten
Ursprung
Commit
c74b5646a6
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      .rc.d/aliases.sh

+ 1 - 2
.rc.d/aliases.sh

@@ -84,8 +84,7 @@ checkout() {
   cd "$HOME/repos/$DIR" || return
 }
 
-# alias ac="aider --commit --model openrouter/meta-llama/llama-4-maverick:free"
-alias ac="git diff | llm -m openrouter/meta-llama/llama-4-maverick:free -s 'Write a concise, imperative-mood git commit message summarizing these changes.' | git commit -F -"
+alias ac="git diff --staged | llm -m openrouter/meta-llama/llama-4-maverick:free -s 'Write a concise, imperative-mood git commit message summarizing these changes. Begin with feat, fix, bug, or chore. No preamble or yapping.' | git commit -F -"
 
 alias pbjson="pbpaste | jq -r"
 alias pbjsons="pbpaste | jq -sRr '@json'"