From: mblaze-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] mless: only export LESSKEY once
Date: Sat, 07 Sep 2019 16:24:14 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-168@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
There is a new pull request by Shugyousha against master on the mblaze repository
https://github.com/Shugyousha/mblaze exportOnce
https://github.com/leahneukirchen/mblaze/pull/168
mless: only export LESSKEY once
A patch file from https://github.com/leahneukirchen/mblaze/pull/168.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-exportOnce-168.patch --]
[-- Type: text/x-diff, Size: 1009 bytes --]
From ec2da1a557337160c55cb16e3a9573714ea3865d Mon Sep 17 00:00:00 2001
From: Silvan Jegen <s.jegen@gmail.com>
Date: Sat, 7 Sep 2019 16:20:57 +0200
Subject: [PATCH] mless: only export LESSKEY once
---
mless | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/mless b/mless
index 390ebcf..b859a15 100755
--- a/mless
+++ b/mless
@@ -63,14 +63,14 @@ nl="
"
export MLESS_RAW=0
export MLESS_HTML=0
+if [ -f "$MBLAZE/mless" ]; then
+ export LESSKEY="$MBLAZE/mless"
+elif [ -f "$HOME/.mblaze/mless" ]; then
+ export LESSKEY="$HOME/.mblaze/mless"
+elif [ -f "$HOME/.mless" ]; then
+ export LESSKEY="$HOME/.mless"
+fi
while :; do
- if [ -f "$MBLAZE/mless" ]; then
- export LESSKEY="$MBLAZE/mless"
- elif [ -f "$HOME/.mblaze/mless" ]; then
- export LESSKEY="$HOME/.mblaze/mless"
- elif [ -f "$HOME/.mless" ]; then
- export LESSKEY="$HOME/.mless"
- fi
LESSOPEN="|$0 --filter %s" \
less -Ps"mless %f?m (message %i of %m).." -R \
"+:e $(mscan -n .)$nl" //scan $(mscan -n :)
next reply other threads:[~2019-09-07 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-07 14:24 mblaze-github [this message]
2019-09-08 13:01 ` [PR PATCH] [Closed]: " mblaze-github
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-168@inbox.vuxu.org \
--to=mblaze-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).