From 774dcd8fbb92a294352d10c9e9eccca8cbcb3654 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 26 Mar 2019 16:04:26 +0900 Subject: [PATCH] Set LESSOPEN to use bat --- profile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profile b/profile index cdfa692..87b3a2a 100755 --- a/profile +++ b/profile @@ -39,6 +39,11 @@ export TERMCAP="${TERMCAP}:vb=" export PAGER="less" export LESS="-iMRX" +if which bat >/dev/null +then + export LESSOPEN="| bat --color=always %s" + # export LESSOPEN="| bat --color=always --decorations=never %s" +fi if false which nvim >/dev/null then