feat(kb): add bat's article

This commit is contained in:
Michele Cereda
2024-05-08 18:52:58 +02:00
parent 6f19031b28
commit 8d0d965a88

55
knowledge base/bat.md Normal file
View File

@@ -0,0 +1,55 @@
# Title
A `cat(1)` clone with syntax highlighting and Git integration.
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL;DR
<details>
<summary>Installation and configuration</summary>
```sh
apt install 'bat'
brew install 'bat'
dnf install 'bat'
zypper install 'bat'
bat --config-file
bat --generate-config-file
```
</details>
<details>
<summary>Usage</summary>
```sh
bat 'path/to/file'
bat 'path/to/file' --paging 'never' --theme="TwoDark"
bat --list-themes
```
</details>
## Further readings
- [Github]
### Sources
<!--
Reference
═╬═Time══
-->
<!-- In-article sections -->
<!-- Knowledge base -->
<!-- Files -->
<!-- Upstream -->
[github]: https://github.com/sharkdp/bat
<!-- Others -->