mless: set a less(1) prompt

This commit is contained in:
Christian Neukirchen 2016-07-21 00:01:08 +02:00
parent af9e32ecf8
commit b3c25c5386

2
mless
View File

@ -36,4 +36,4 @@ esac
curcmd=$(mseq -n "$@" |
awk -v cur=$(mseq -n .) -v d=$d '$1 == cur {print "+" FNR+d ":x"; quit}')
LESSOPEN="|$0 --filter %s" exec less -R $curcmd $(mseq -n "$@")
LESSOPEN="|$0 --filter %s" exec less -Ps"mless %f?m (message %i of %m).." -R $curcmd $(mseq -n "$@")