diff options
author | Andreas Gruenbacher <agruen@schurl.novell.linbit> | 2009-11-19 03:16:00 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2009-11-20 22:55:22 +0100 |
commit | 0ba994a91b0e5fa26b79e783b4b9c5568e712da3 (patch) | |
tree | c41972c172cd89605daea2a4053c6492fd9e3d3e /quilt.quiltrc | |
parent | cfaa6e0db5cd73f655dc6388311dff0da5d4bfcf (diff) | |
download | quilt-0ba994a91b0e5fa26b79e783b4b9c5568e712da3.tar.gz |
pager support: some improvements
When QUILT_PAGER is set to an empty value, do not paginate.
Document QUILT_PAGER in the man page.
Clean things up a little.
Add a workaround in quilt.quiltrc for color output when $LESS is defined.
Diffstat (limited to 'quilt.quiltrc')
-rw-r--r-- | quilt.quiltrc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quilt.quiltrc b/quilt.quiltrc index b815d32..cd44500 100644 --- a/quilt.quiltrc +++ b/quilt.quiltrc @@ -18,6 +18,10 @@ QUILT_REFRESH_ARGS="--no-timestamps --backup" QUILT_SERIES_ARGS="--color=auto" QUILT_PATCHES_ARGS="--color=auto" +# When non-default less options are used, add the -R option so that less outputs +# ANSI color escape codes "raw". +[ -n "$LESS" ] && QUILT_PAGER="less -R" + # (Add "-p ab" to QUILT_DIFF_ARGS and QUILT_REFRESH_ARGS to get # -p1 style diffs with a/file and b/file filenams in headers # instead of dir.orig/file and dir/file.) |