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
|
# 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()
|
function cat-highlight()
|
||||||
{
|
{
|
||||||
# Check if we are in a terminal and $LESSOPEN is not empty
|
# Check if we are in a terminal and $LESSOPEN is not empty
|
||||||
|
@ -46,8 +46,7 @@ function cat-highlight()
|
||||||
done
|
done
|
||||||
|
|
||||||
local catopen="${LESSOPEN/| /}"
|
local catopen="${LESSOPEN/| /}"
|
||||||
catopen="${catopen/\%s/${files}}"
|
eval "${catopen/\%s/${files}} | \cat ${args}"
|
||||||
eval "${catopen} | \cat ${args}"
|
|
||||||
else
|
else
|
||||||
\cat $@
|
\cat $@
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue