Skip to content

Commit

Permalink
bashrc: use highlight-less-wrapper in $LESSOPEN
Browse files Browse the repository at this point in the history
  • Loading branch information
HaleTom committed Jun 18, 2018
1 parent c1f5723 commit 6b38f21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bash/.config/bash/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export LESS=-FMRXis
# export GROFF_SGR=1

# Have less highlight source code
highlight=/usr/bin/src-hilite-lesspipe.sh
[ -x "$highlight" ] && export LESSOPEN="| $highlight %s";
unset highlight
LESSOPEN="|-$HOME/bin/highlight-less-wrapper"' "%s"' # shellcheck disable=SC2034

# Set $LS_COLORS
[ -x /usr/bin/dircolors ] && eval "$(/usr/bin/dircolors)"
Expand Down

0 comments on commit 6b38f21

Please sign in to comment.