090f165e2bcc1ad7ee9698af3a5e7b3724e1ea96
[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 ---
7
8 ## Updating `bat`
9
10 ```bash
11 webi bat@stable
12 ```
13
14 Use the `@beta` tag for pre-releases.
15
16 ## Cheat Sheet
17
18 > `bat` is pretty much what `cat` would be if it were developed today's in the
19 > world of Markdown, git, etc.
20
21 ### How to run on Windows 10
22
23 On Windows 10 you'll get an error like this:
24
25 > execution cannot proceed run because vcruntime140.dll was not found
26
27 You need to download and install the
28 [Microsoft Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads)
29
30 ### How to alias as `cat`
31
32 Update your `.bashrc`, `.zshrc`, or `.profile`
33
34 ```bash
35 alias cat="bat --style=plain"
36 ```
37
38 For situations in which you must use `cat` exactly, remember that you can escape the alias:
39
40 ```bash
41 \cat foo
42 ```
43
44 ### How to change the default behavior
45
46 Take a look at the config options:
47
48 ```bash
49 bat --help
50 ```
51
52 Check to see where your config file is:
53
54 ```bash
55 echo 'N' | bat --generate-config-file
56 ```
57
58 Edit the config file:
59
60 `~/.config/bat/config`:
61
62 ```txt
63 # no numbers or headers, just highlighting and such
64 --style="plain"
65 ```