dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 0fa0647b96fbafe9a20147f5f6dacf6d860e8e34
parent ced0ab821c2ccdb22fd2e14e941e4b88c1d3b605
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed,  3 Jan 2018 06:54:35 -0500

Less configuration

1. Create .lesskey
2. Set LESS and PAGER environment variables
3. Exec lesskey if available and .less doesn't exist

Diffstat:
A.lesskey | 2++
M.shrc | 9++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.lesskey b/.lesskey @@ -0,0 +1,2 @@ +h left-scroll +l right-scroll diff --git a/.shrc b/.shrc @@ -13,7 +13,14 @@ fi VISUAL=$EDITOR PS1="$LOGNAME@\h:\W\$ " -export EDITOR VISUAL PS1 +PAGER=less +LESS="-FMRqX#10" +export EDITOR VISUAL PS1 PAGER LESS + +if which lesskey > /dev/null 2>&1 && [ -r "$HOME/.lesskey" ] +then + [ -r "$HOME/.less" ] || lesskey +fi # Keep the go folder hidden if which go > /dev/null 2>&1