Kashmir54

Cibersecurity blog. CTFs, writeups, electronics and more!

Home YouTube View on GitHub

Bat

Bat is a great tool for syntax highlighting and git integration on your shell. It can be used like cat for file display on the shell and I find it very usefull in order to show text files with non-printable characters, colored reports or to quick error checks thanks to the line number display:

Some python3 highlight:

And also it supports integration with other commands like man, find, tail…

Instalation

You can read the full instructions on their GitHub project but I can resume it here if you are looking into the Kali instalation:

sudo dpkg -i bat_0.15.4_amd64.deb

If you want man highlight, you can set it up with the following command to set the enviroment variable:

export MANPAGER="sh -c 'col -bx | bat -l man -p'"
man 2 select