Skip to content

Commit 89bd484

Browse files
authored
Update command references from git-ai-commit to commitgen-cc
1 parent f14fc3b commit 89bd484

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ A CLI tool that uses a local [Ollama](https://ollama.com/) instance to generate
1212

1313
```bash
1414
# Global installation
15-
npm install -g git-message-ai-commit
15+
npm install -g commitgen-cc
1616

1717
# Or run directly with npx
18-
npx git-message-ai-commit
18+
npx commitgen-cc
1919
```
2020

2121
## Usage
@@ -29,7 +29,7 @@ git add .
2929
Run the tool:
3030

3131
```bash
32-
git-ai-commit
32+
commitgen-cc
3333
```
3434

3535
### Options
@@ -59,7 +59,7 @@ git-ai-commit
5959
Generate JSON output in non-interactive mode:
6060

6161
```bash
62-
git-ai-commit --ci --dry-run --output json
62+
commitgen-cc --ci --dry-run --output json
6363
```
6464

6565
### Exit codes
@@ -79,5 +79,8 @@ git-ai-commit --ci --dry-run --output json
7979
You can set a shorter alias (e.g. `aic`) in your shell config (`.zshrc`, `.bashrc`, etc.):
8080

8181
```bash
82-
alias aic="git-ai-commit"
82+
echo 'alias aic="commitgen-cc"' >> ~/.aliases \
83+
&& { [ -n "$ZSH_VERSION" ] && echo '[ -f ~/.aliases ] && source ~/.aliases' >> ~/.zshrc; } \
84+
&& { [ -n "$BASH_VERSION" ] && echo '[ -f ~/.aliases ] && source ~/.aliases' >> ~/.bashrc; } \
85+
&& source ~/.aliases
8386
```

0 commit comments

Comments
 (0)