Remove unnecessary line in cat-highlight
This commit is contained in:
parent
1a1afe2419
commit
9358197167
@ -29,7 +29,7 @@ function export-emacs
|
||||
}
|
||||
|
||||
# Highlight cat output with whatever less is using for highlighting. The command
|
||||
# in ${LESSOPEN} needs to be able to work with multiple files.
|
||||
# in $LESSOPEN needs to be able to work with multiple files.
|
||||
function cat-highlight()
|
||||
{
|
||||
# Check if we are in a terminal and $LESSOPEN is not empty
|
||||
@ -46,8 +46,7 @@ function cat-highlight()
|
||||
done
|
||||
|
||||
local catopen="${LESSOPEN/| /}"
|
||||
catopen="${catopen/\%s/${files}}"
|
||||
eval "${catopen} | \cat ${args}"
|
||||
eval "${catopen/\%s/${files}} | \cat ${args}"
|
||||
else
|
||||
\cat $@
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user