Skip to content

feat(zsh): add gcai AI commit message helper and cl alias - #5

Merged
nielsonm merged 2 commits into
mainfrom
feat/gcai-and-clear-alias
Aug 27, 2026
Merged

nielsonm merged 2 commits into
mainfrom
feat/gcai-and-clear-alias

Conversation

@nielsonm

Copy link
Copy Markdown
Owner

Summary

Adds two quality-of-life improvements to .zshrc:

gcai function

AI-powered commit message generator using agy. Generates a Conventional Commits 1.0.0 compliant message from staged changes with interactive confirm/edit/abort workflow.

cl alias

Shorthand for clear.

Changes

  • Add gcai() function that:
    • Detects the git repo root via git rev-parse
    • Captures staged diff and embeds it in the agy prompt
    • Enforces Conventional Commits format (type, optional scope, description)
    • Offers [y]es / [e]dit / [n]o confirmation before committing
  • Add alias cl='clear'

@nielsonm
nielsonm merged commit eada847 into main Aug 27, 2026
4 checks passed
@nielsonm
nielsonm deleted the feat/gcai-and-clear-alias branch August 27, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant