Installing `bat` on Debian 10 / stable


illustration: linux-bat-installation-on-debian-10.en

bat is a command-line tool to display text files. It provides syntax highlighting, git integration and many other features. If you plan to spend some time in the Terminal, you should definitively install it to replace cat.

According to the documentation, bat should be only available for Debian sid.

Here is how to install it on Debian 10 (stable):

The result in video:

A report was submitted to suggest an update to the documentation.

Preview available themes

bat --list-themes | fzf --preview="bat --theme={} --color=always test.md"

Additional resources

Similar project: ccat Plug with fzf : fzf --preview 'cat --color=always --style=numbers --line-range=:500 {}'


Tags:

cli  terminal  git 

Comments: