mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-17 21:59:11 +02:00
docs: document --color-always
This commit is contained in:
parent
b24222e8e3
commit
a020293fc2
2 changed files with 10 additions and 0 deletions
|
|
@ -173,6 +173,12 @@ either the `dark` or the `light` style for you.
|
|||
glow -s [dark|light]
|
||||
```
|
||||
|
||||
For piped output, use `--color=always` to keep colorized output even when stdout is not a terminal.
|
||||
|
||||
```bash
|
||||
glow --color=always
|
||||
```
|
||||
|
||||
Alternatively you can also supply a custom JSON stylesheet:
|
||||
|
||||
```bash
|
||||
|
|
@ -201,6 +207,8 @@ Here's an example config:
|
|||
```yaml
|
||||
# style name or JSON path (default "auto")
|
||||
style: "light"
|
||||
# colorize output when piped (auto|always)
|
||||
color: "auto"
|
||||
# mouse wheel support (TUI-mode only)
|
||||
mouse: true
|
||||
# use pager to display markdown
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ import (
|
|||
|
||||
const defaultConfig = `# style name or JSON path (default "auto")
|
||||
style: "auto"
|
||||
# colorize output when piped (auto|always)
|
||||
color: "auto"
|
||||
# mouse support (TUI-mode only)
|
||||
mouse: false
|
||||
# use pager to display markdown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue