From b4b77f8dda5d32d43c0a1dd66f9a165b64cacb09 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 3 Oct 2016 21:21:50 -0400 Subject: [PATCH] syntax highlighting enabled in pagers all the mo/less/more variants now will show syntax highlighting for c, c++ etc. anything supported by gnu source highlighter. --- scripts/core/variables.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 1be1278d..1ec14e31 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -183,6 +183,9 @@ if [ -z "$CORE_VARIABLES_LOADED" ]; then # set this so nechung can find its data. define_yeti_variable NECHUNG=$FEISTY_MEOW_APEX/infobase/fortunes.dat + # establish a pipe for less to see our beloved syntax highlighting. + define_yeti_variable LESSOPEN="| source-highlight -f esc -o STDOUT -i %s" + # ensure we use the right kind of secure shell. # define_yeti_variable CVS_RSH=$FEISTY_MEOW_SCRIPTS/security/ssh.sh # define_yeti_variable GIT_SSH=$FEISTY_MEOW_SCRIPTS/security/ssh.sh -- 2.34.1