878fda46c944ae4bdd82a734b117a623f9487894
[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's in the world of Markdown, git, etc.
8 ---
9
10 ### How to run on Windows 10
11
12 On Windows 10 you'll get an error like this:
13
14 > execution cannot proceed run because vcruntime140.dll was not found
15
16 You need to download and install the
17 [Microsoft Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)
18
19 ### How to alias as `cat`
20
21 Update your `.bashrc`, `.zshrc`, or `.profile`
22
23 ```bash
24 alias cat="bat --style=plain"
25 ```
26
27 ### How to change the default behavior
28
29 Take a look at the config options:
30
31 ```bash
32 bat --help
33 ```
34
35 Check to see where your config file is:
36
37 ```bash
38 echo 'N' | bat --generate-config-file
39 ```
40
41 Edit the config file:
42
43 `~/.config/bat/config`:
44
45 ```txt
46 # no numbers or headers, just highlighting and such
47 --style="plain"
48 ```