From f520784d9b9e567f04136ff27a2b580851a5e33f Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Fri, 4 Mar 2022 11:21:18 +0000 Subject: [PATCH] zsh: LESS with more usability These defaults are heavily inspired by the default of $SYSTEMD_LESS provided by systemd themselves. Signed-off-by: Joe Groocock --- zsh/.zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 7ad3838..9b5af27 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -16,9 +16,10 @@ if exists tty && tty -s; then fi # Configure less and add colours -export LESS="-RI --mouse --wheel-lines=3" +export LESS="-nRIFRSXM --mouse --wheel-lines=3" export PAGER="less" export MANPAGER="less -+N" +export SYSTEMD_LESS="$LESS" export SYSTEMD_PAGER="less $LESS" # Disable histfile export LESSHISTFILE=-