From 958e3e08bd74e6bec3e5baee87041025fe59494d Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 28 Sep 2021 16:18:35 +0200 Subject: mless: prefer setting LESSKEYIN and .mlesskey Fixes #215. --- mless | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mless') diff --git a/mless b/mless index 08ce513..ddead98 100755 --- a/mless +++ b/mless @@ -72,7 +72,13 @@ nl=" " export MLESS_RAW=0 export MLESS_HTML=0 -if [ -f "$MBLAZE/mless" ]; then +if [ -f "$MBLAZE/mlesskey" ]; then + export LESSKEYIN="$MBLAZE/mlesskey" +elif [ -f "$HOME/.mblaze/mlesskey" ]; then + export LESSKEYIN="$HOME/.mblaze/mlesskey" +elif [ -f "$HOME/.mlesskey" ]; then + export LESSKEYIN="$HOME/.mlesskey" +elif [ -f "$MBLAZE/mless" ]; then export LESSKEY="$MBLAZE/mless" elif [ -f "$HOME/.mblaze/mless" ]; then export LESSKEY="$HOME/.mblaze/mless" -- cgit 1.4.1