From 401a53cbe738657f729525375028946549e8ba15 Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 4 Dec 2020 02:56:45 +0100 Subject: [PATCH] zsh: cleanup less options --- brethil_dotfile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index 158b26f..a65168a 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -43,13 +43,13 @@ export HISTSIZE=100000 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 +# less options +export LESS='-xRF-j12' # -j12: displays 12 lines before search results with / and ? if [[ "$(command -v bat)" ]]; then alias cat=bat - export BAT_PAGER="less -xRF" + export BAT_PAGER="less $LESS" export PAGER=bat fi -# less options -export LESS='-RF-j12' # -j12: displays 12 lines before search results with / and ? if [[ $SSH_CLIENT ]]; then export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock