Github messages for mblaze
 help / color / mirror / Atom feed
* [PR PATCH] mless: only export LESSKEY once
@ 2019-09-07 14:24 mblaze-github
  2019-09-08 13:01 ` [PR PATCH] [Closed]: " mblaze-github
  0 siblings, 1 reply; 2+ messages in thread
From: mblaze-github @ 2019-09-07 14:24 UTC (permalink / raw)
  To: ml

[-- 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 :)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: mless: only export LESSKEY once
  2019-09-07 14:24 [PR PATCH] mless: only export LESSKEY once mblaze-github
@ 2019-09-08 13:01 ` mblaze-github
  0 siblings, 0 replies; 2+ messages in thread
From: mblaze-github @ 2019-09-08 13:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

There's a closed pull request on the mblaze repository

mless: only export LESSKEY once
https://github.com/leahneukirchen/mblaze/pull/168

Description:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-08 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07 14:24 [PR PATCH] mless: only export LESSKEY once mblaze-github
2019-09-08 13:01 ` [PR PATCH] [Closed]: " mblaze-github

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).