From ed35e44a010c85ecc44a3b133a1861b1b535538e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 2 Jun 2021 10:06:22 +0200 Subject: profile: set up history for less --- dotfiles/profile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dotfiles') diff --git a/dotfiles/profile b/dotfiles/profile index df3746f..7921b92 100644 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -17,7 +17,8 @@ export VISUAL=$EDITOR ## auto-creating and cleaning a per-boot dir export XDG_RUNTIME_DIR=${HOME}/.cache/ -# colors for less +## less configuration +### colors export LESS="-iR" export LESS_TERMCAP_mb=$'\E[01;36m' export LESS_TERMCAP_md=$'\E[01;36m' @@ -27,6 +28,10 @@ export LESS_TERMCAP_so=$'\E[01;44;33m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[11;32m' +### history +export LESSHISTFILE=${HOME}/.local/var/less/history +export LESSHISTSIZE=65536 + ## set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" -- cgit v1.2.3