summaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-02 10:06:22 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-02 10:08:06 +0200
commited35e44a010c85ecc44a3b133a1861b1b535538e (patch)
tree68cf232ae7bf576bad8ddf302a1dbe142ca1dd76 /dotfiles
parentb3bc589c57e01fb3a654329b813abe6657d8cd88 (diff)
profile: set up history for less
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/profile7
1 files changed, 6 insertions, 1 deletions
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"