chore: make Prettier + fix spelling, update upgrade/switch instructions, prefer ale...
[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
39 the alias:
40
41 ```bash
42 \cat foo
43 ```
44
45 ### How to change the default behavior
46
47 Take a look at the config options:
48
49 ```bash
50 bat --help
51 ```
52
53 Check to see where your config file is:
54
55 ```bash
56 echo 'N' | bat --generate-config-file
57 ```
58
59 Edit the config file:
60
61 `~/.config/bat/config`:
62
63 ```txt
64 # no numbers or headers, just highlighting and such
65 --style="plain"
66 ```