colors

Default: auto

Whether enable or disable colorful output of Lefthook. This option can be overwritten with --colors option. You can also provide your own color codes.

Example

Disable colors.

# lefthook.yml

colors: false

Custom color codes. Can be hex or ANSI codes.

# lefthook.yml

colors:
  cyan: 14
  gray: 244
  green: '#32CD32'
  red: '#FF1493'
  yellow: '#F0E68C'

Control via ENV variable.

  • Set NO_COLOR=true to disable colored output in lefthook and all subcommands that lefthook calls.
  • Set CLICOLOR_FORCE=true to force colored output in lefthook and all subcommands.