(no title)
ikurei | 4 months ago
This will live in my .bashrc for a long time:
cat() {
if [[ -t 1 ]]; then
command cat "$@" | highlight --force -O xterm256
else
# plain cat to pipe into other things
command cat "$@"
fi
}
dTal|4 months ago
unknown|4 months ago
[deleted]
em-bee|4 months ago
i'd change the third line so you can actually get syntax highlighting: