1
0
Fork 0

cat-highlight: Allow unset variables

This commit is contained in:
tastytea 2022-04-03 07:38:07 +02:00
parent 071d3e0e01
commit 386fcc82bd
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
# export CATOPEN="highlight --force --out-format=truecolor --stdout %s"
# alias cat='cat-highlight'
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
setopt LOCAL_OPTIONS ERR_RETURN PIPE_FAIL
# Check if we are in a terminal and a highlighter is defined
if [[ -t 1 ]] && [[ -n "${CATOPEN}" || -n "${LESSOPEN}" ]]; then