add bat
[webi-installers/.git] / bat / README.md
1 ---
2 title: bat
3 homepage: https://github.com/sharkdp/bat
4 tagline: |
5   bat: A cat(1) clone with syntax highlighting and Git integration.
6 description: |
7   `bat` is pretty much what `cat` would be if it were developed today in the world of Markdown, git, etc.
8 ---
9
10 ## How to alias as `cat`
11
12 Update your `.bashrc`, `.zshrc`, or `.profile`
13
14 ```bash
15 alias cat="bat --style=plain"
16 ```
17
18 ## How to change the default behavior
19
20 Take a look at the config options:
21
22 ```bash
23 bat --help
24 ```
25
26 Check to see where your config file is:
27
28 ```bash
29 echo 'N' | bat --generate-config-file
30 ```
31
32 Edit the config file:
33
34 `~/.config/bat/config`:
35
36 ```txt
37 # no numbers or headers, just highlighting and such
38 --style="plain"
39 ```