1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

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 <me@frebib.net>
This commit is contained in:
Joe Groocock 2022-03-04 11:21:18 +00:00
parent ef4b739af1
commit f520784d9b
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -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=-