summaryrefslogtreecommitdiff
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
parentb3bc589c57e01fb3a654329b813abe6657d8cd88 (diff)
profile: set up history for less
-rw-r--r--dotfiles/profile7
-rw-r--r--install.conf.yaml1
2 files changed, 7 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"
diff --git a/install.conf.yaml b/install.conf.yaml
index 795ff32..5db5fe0 100644
--- a/install.conf.yaml
+++ b/install.conf.yaml
@@ -7,6 +7,7 @@
- ~/.local/var/bash
- ~/.local/var/cron/daily
- ~/.local/var/dotfiles
+ - ~/.local/var/less
- ~/.local/var/vim/undo
- ~/.vim/colors
- ~/.vim/ftplugin/rst