Last active
August 24, 2025 00:09
-
-
Save thatbeautifuldream/d8d442538dc6729acda7692c0da8ad0e to your computer and use it in GitHub Desktop.
aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Package manager aliases | |
| alias pn=pnpm | |
| alias px="pnpm dlx" | |
| alias pnd="pnpm run dev" | |
| alias pnb="pnpm run build" | |
| alias pns="pnpm run start" | |
| alias cloc-next="cloc . --exclude-dir=node_modules,.next,public --not-match-f='(next.config.js|package.json|package-lock.json|tsconfig.json|README.md)'" | |
| # ai commit messages | |
| aicmt() { | |
| if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then | |
| echo "Not in a git repo"; return 1 | |
| fi | |
| local diff | |
| diff=$(git diff --cached --no-color) | |
| if [ -z "$diff" ]; then | |
| echo "No staged changes"; return 1 | |
| fi | |
| command claude -p "Write a Conventional Commit message for the following changes. Only output the commit message. Do not add any extra text, attributions, or notes: | |
| $diff" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, that is super usefull