-
Notifications
You must be signed in to change notification settings - Fork 0
/
bat.txt
18 lines (14 loc) · 820 Bytes
/
bat.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# bat is a better cat. because of naming issues it's also known as batcat on some distros.
# debian/ubuntu: apt install bat.
# centos: dnf install bat
# otherwise check https://github.com/sharkdp/bat#installation
# site: https://github.com/sharkdp/bat
# binaries: https://github.com/sharkdp/bat/releases
# there *is* a man page, at least with the binary download, but that needs putting somewhere. this works too:
$ bat --help
# bat has its own ideas about what to color in, say, logfiles. Using \e[32m--color never\e[0m it will not add colors, but still
# print ansi colors already in the file. It doesn't seem to believe in coloring past the first linebreak though..
# remove bat's fancy lines and numbers and such
-p / --plain
# specify syntax to use for coloring (accepts language or extension)
-l <language>