소스 검색

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

Tom McKenzie 6 달 전
부모
커밋
c74b5646a6
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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'"