victor-gp/cmd-help-sublime-syntax

Sublime Syntax definition for sharkdp/bat to colorize command --help messages.

26

stars

554

commits

YAML

primary language

Jun 29, 2026

updated

bat
command-line
help
regex
sublime-syntax
syntax-highlighting
terminal
Browse cluster: Command-line tools and terminal utilities

README

cmd-help.sublime-syntax

Sublime Syntax definition for bat to colorize command --help messages.

It provides just enough color to help find your way around a help message.

Example usage of the cmd-help syntax on 'bat -h'

See examples from other help messages.

Installation

This syntax is included with bat since version 0.21.0.

If you have an earlier version of bat or you want the latest version of cmd-help, you can add it as a new syntax. You have to copy this syntax file.

To check that everything works, run git --help | bat -plhelp

Configuration

Visit the wiki for configuration tips, including:

  • Setting a bathelp alias to avoid typing the full bat command with options each time (basic configuration).
  • Adding a help function you can use like $ help <CMD>, or even $ help <CMD> <SUBCMD>.
  • Enhancing --help so you can simply type $ <CMD> --help as usual.

cmd-help is compatible with most bat themes (~2/3rds). To get the best experience, ensure your configured theme is supported. See the list of compatible themes.

Contributing

Contributions are welcome! :D

Make sure to give CONTRIBUTING.md a cursory read to learn how you can help.

If you want to hack on the project, look at the Development wiki to help get you started.

If you like cmd-help, please star it on GitHub and spread the word. :)

License

MIT © Víctor González Prieto

Contributors

victor-gp

550 commits

Freed-Wu

3 commits

sb-decoder

1 commits

victor-gp/cmd-help-sublime-syntax

Sublime Syntax definition for sharkdp/bat to colorize command --help messages.

26

stars

554

commits

YAML

primary language

Jun 29, 2026

updated

bat
command-line
help
regex
sublime-syntax
syntax-highlighting
terminal
Browse cluster: Command-line tools and terminal utilities

README

cmd-help.sublime-syntax

Sublime Syntax definition for bat to colorize command --help messages.

It provides just enough color to help find your way around a help message.

Example usage of the cmd-help syntax on 'bat -h'

See examples from other help messages.

Installation

This syntax is included with bat since version 0.21.0.

If you have an earlier version of bat or you want the latest version of cmd-help, you can add it as a new syntax. You have to copy this syntax file.

To check that everything works, run git --help | bat -plhelp

Configuration

Visit the wiki for configuration tips, including:

  • Setting a bathelp alias to avoid typing the full bat command with options each time (basic configuration).
  • Adding a help function you can use like $ help <CMD>, or even $ help <CMD> <SUBCMD>.
  • Enhancing --help so you can simply type $ <CMD> --help as usual.

cmd-help is compatible with most bat themes (~2/3rds). To get the best experience, ensure your configured theme is supported. See the list of compatible themes.

Contributing

Contributions are welcome! :D

Make sure to give CONTRIBUTING.md a cursory read to learn how you can help.

If you want to hack on the project, look at the Development wiki to help get you started.

If you like cmd-help, please star it on GitHub and spread the word. :)

License

MIT © Víctor González Prieto

Contributors

victor-gp

550 commits

Freed-Wu

3 commits

sb-decoder

1 commits

Languages

YAML

57.7%

Shell

29.9%

Python

8.4%

Dockerfile

4.0%