zsh: export CATOPEN if highlight is found
This commit is contained in:
parent
77553ac29d
commit
5902d4d020
|
@ -85,6 +85,7 @@ export LESS="--tabs=4 --RAW-CONTROL-CHARS --LONG-PROMPT"
|
||||||
if command -v highlight > /dev/null; then
|
if command -v highlight > /dev/null; then
|
||||||
# ~/.lessfilter handles the highlighting
|
# ~/.lessfilter handles the highlighting
|
||||||
LESSOPEN="| $(command -v lesspipe) %s"
|
LESSOPEN="| $(command -v lesspipe) %s"
|
||||||
|
export CATOPEN="highlight --validate-input --force --out-format=truecolor --style=base16/unikitty-reversible --stdout %s"
|
||||||
elif command -v pygmentize > /dev/null; then
|
elif command -v pygmentize > /dev/null; then
|
||||||
LESSOPEN="| $(command -v pygmentize) -f terminal16m -g -O style=paraiso-dark %s"
|
LESSOPEN="| $(command -v pygmentize) -f terminal16m -g -O style=paraiso-dark %s"
|
||||||
elif command -v source-highlight > /dev/null; then
|
elif command -v source-highlight > /dev/null; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user