Browse Source

Use batcat instead of bat if available

master
10sr 4 years ago
parent
commit
963d2122a6
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      profile

+ 4
- 2
profile View File

@@ -40,9 +40,11 @@ export TERMCAP="${TERMCAP}:vb="

export PAGER="less"
export LESS="-iMRX"
if which bat >/dev/null

__batcommand=$(command -v bat || command -v batcat)
if test -n "$__batcommand"
then
export LESSOPEN="| bat --color=always %s"
export LESSOPEN="| $__batcommand --color=always %s"
# export LESSOPEN="| bat --color=always --decorations=never %s"
fi



Loading…
Cancel
Save