ソースを参照

mless: prefer setting LESSKEYIN and .mlesskey

Fixes #215.
pull/217/head
Leah Neukirchen 9ヶ月前
コミット
958e3e08bd
  1. 8
      man/mless.1
  2. 8
      mless
  3. 2
      mlesskey.example

8
man/mless.1

@ -43,6 +43,14 @@ Use
and
.Sq Ic ":p"
to read the next (resp. previous) message.
.Sh FILES
.Bl -tag -width Ds
.It Pa ${MBLAZE:-$HOME/.mblaze}/mlesskey , Pa $HOME/.mlesskey
Additional keybindings loaded for convenience.
.It Pa ${MBLAZE:-$HOME/.mblaze}/mless , Pa $HOME/.mless
Additional compiled keybindings loaded for convenience.
(Only needed for less earlier than version 590.)
.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO

8
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"

2
mlesskey.example

@ -1,5 +1,5 @@
# mless(1) keybindings
# to update: lesskey -o ~/.mless ~/.mlesskey
# to update (only on less <590): lesskey -o ~/.mless ~/.mlesskey
Q quit \1
:cq quit \1
[ prev-file

読み込み中…
キャンセル
保存