X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=bat%2FREADME.md;h=75d12e5d550c8f6b0009edd0aa5b0063796c36d3;hb=a217150c172d705f42f8645fb18235af5be60c33;hp=232a2acf46e7d7a4224c7d41ca6b0271a4ea1c89;hpb=da8e2a58641786de373d32543a5296eb1b922fbf;p=webi-installers%2F.git diff --git a/bat/README.md b/bat/README.md index 232a2ac..75d12e5 100644 --- a/bat/README.md +++ b/bat/README.md @@ -3,11 +3,31 @@ title: bat homepage: https://github.com/sharkdp/bat tagline: | bat: A cat(1) clone with syntax highlighting and Git integration. -description: | - `bat` is pretty much what `cat` would be if it were developed today in the world of Markdown, git, etc. --- -## How to alias as `cat` +## Updating `bat` + +```bash +webi bat@stable +``` + +Use the `@beta` tag for pre-releases. + +## Cheat Sheet + +> `bat` is pretty much what `cat` would be if it were developed today's in the +> world of Markdown, git, etc. + +### How to run on Windows 10 + +On Windows 10 you'll get an error like this: + +> execution cannot proceed run because vcruntime140.dll was not found + +You need to download and install the +[Microsoft Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) + +### How to alias as `cat` Update your `.bashrc`, `.zshrc`, or `.profile` @@ -15,7 +35,13 @@ Update your `.bashrc`, `.zshrc`, or `.profile` alias cat="bat --style=plain" ``` -## How to change the default behavior +For situations in which you must use `cat` exactly, remember that you can escape the alias: + +```bash +\cat foo +``` + +### How to change the default behavior Take a look at the config options: @@ -36,4 +62,4 @@ Edit the config file: ```txt # no numbers or headers, just highlighting and such --style="plain" -``` +``` \ No newline at end of file