Skip to content

Commit 406534c

Browse files
committed
Update README with OVERCOMMIT_COLOR env var
1 parent f3572d2 commit 406534c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,16 @@ hooks to run, you can disable Overcommit entirely by setting the
172172
OVERCOMMIT_DISABLE=1 ./my-custom-script
173173
```
174174

175+
### Disabling Colorized Output
176+
177+
Overcommit automatically colorizes its output based on whether it is outputting
178+
to a TTY. However, you can manually enable/disable color by setting the
179+
`OVERCOMMIT_COLOR` environment variable.
180+
181+
```bash
182+
OVERCOMMIT_COLOR=0 git commit
183+
```
184+
175185
## Continuous Integration
176186

177187
You can run the same set of hooks that would be executed in a pre-commit hook

0 commit comments

Comments
 (0)