Module Name: src Committed By: uwe Date: Mon Sep 23 12:20:23 UTC 2024
Modified Files: src/etc/skel: dot.cshrc Log Message: dot.cshrc: add commented out LESS example Switch commented out PAGER from more(1), the default, to less(1), so that a user can just uncomment the line and doesn't have to edit it. While here, add commented out example of setting less(1) options with LESS and explain how you can use -X to alleviate the pain from alternate screen switching (b/c, of course, nothing is more user friendly than wiping away from the screen the manual page you have just been reading in your PAGER and want to peek at again as you are typing the command). This should have been in the same commit with the identical dot.profile change. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/etc/skel/dot.cshrc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/skel/dot.cshrc diff -u src/etc/skel/dot.cshrc:1.8 src/etc/skel/dot.cshrc:1.9 --- src/etc/skel/dot.cshrc:1.8 Thu Mar 1 06:12:09 2018 +++ src/etc/skel/dot.cshrc Mon Sep 23 12:20:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: dot.cshrc,v 1.8 2018/03/01 06:12:09 snj Exp $ +# $NetBSD: dot.cshrc,v 1.9 2024/09/23 12:20:23 uwe Exp $ # # This is the default .cshrc file. # Users are expected to edit it to meet their own needs. @@ -26,7 +26,15 @@ setenv EDITOR vi # Set the pager. This is used by, among other things, man(1) for # showing man pages. The default is "more". Another reasonable choice # (included with the system by default) is "less". -#setenv PAGER more +#setenv PAGER less + +# Many modern terminal emulators don't provide a way to disable +# alternate screen switching (like xterm's titeInhibit). less(1) has +# its own option (-X) for that that you can use to alleviate the pain, +# as PAGER is the most common scenario for hitting this. Add other +# flags according to taste. +#setenv LESS "-i -M -X" + # Set your default printer, if desired. #setenv PRINTER change-this-to-a-printer