mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
feat(kb): add bat's article
This commit is contained in:
55
knowledge base/bat.md
Normal file
55
knowledge base/bat.md
Normal 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 -->
|
||||
Reference in New Issue
Block a user