cat-highlight: Allow unset variables
This commit is contained in:
parent
071d3e0e01
commit
386fcc82bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user