mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-04 04:12:31 +01:00
Add first version of 'man page' syntax, closes #523
This commit is contained in:
11
README.md
11
README.md
@@ -132,6 +132,17 @@ bat main.cpp | xclip
|
||||
```
|
||||
`bat` will detect that the output is being redirected and print the plain file contents.
|
||||
|
||||
#### `man`
|
||||
|
||||
`bat` can be used as a pager for `man`. It can be used like this:
|
||||
```
|
||||
export MANPAGER="sh -c 'col -b | bat -l man -p'"
|
||||
|
||||
man 2 select
|
||||
```
|
||||
|
||||
The [Manpage syntax](assets/syntaxes/Manpage.sublime-syntax) is developed in this repository and still needs some work.
|
||||
|
||||
## Installation
|
||||
|
||||
### On Ubuntu
|
||||
|
Reference in New Issue
Block a user