summaryrefslogtreecommitdiffstats
path: root/quilt
diff options
context:
space:
mode:
authorKent R. Spillner <kspillner@acm.org>2013-12-13 22:01:27 -0600
committerAndreas Gruenbacher <agruen@linbit.com>2013-12-14 07:31:44 +0100
commit497979e561e880fb0d11be82c78544e5718d531b (patch)
tree4d3af0d36b12e081d7f516571987760574d16b7e /quilt
parent08d5bcd0dca38ab17230af76f577aebd3c54b239 (diff)
downloadquilt-497979e561e880fb0d11be82c78544e5718d531b.tar.gz
scripts: let users override LESS env variable.
Add a QUILT_LESS_ARGS variable that can be used to configure what quilt will set LESS to when LESS is undefined. Defaults to -FSRX so no functional change in the default case, but allows users to drop the -F argument as needed (for example, when using a multiline shell prompt) without explicitly setting LESS. Signed-off-by: Kent R. Spillner <kspillner@acm.org>
Diffstat (limited to 'quilt')
-rw-r--r--quilt/scripts/patchfns.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/quilt/scripts/patchfns.in b/quilt/scripts/patchfns.in
index 9ee56db..fb05794 100644
--- a/quilt/scripts/patchfns.in
+++ b/quilt/scripts/patchfns.in
@@ -1008,7 +1008,8 @@ setup_pager()
[ -z "$QUILT_PAGER" -o "$QUILT_PAGER" = "cat" ] && return 0
- export LESS="${LESS:-FRSX}"
+ QUILT_LESS_ARGS="${QUILT_LESS_ARGS-${LESS:-FRSX}}"
+ export LESS="${QUILT_LESS_ARGS}"
# NOTE: with "exec > >($pager)" there is no way to get the pid of the
# pager so we can't wait for it to complete. Otherwise we wouldn't