I'm working on Solaris 10, using bash. Want to change default pager from "more" to "less" (because "less is more" :). Tried to do the following:
PAGER=less
PS. When I do it in csh via
setenv PAGER less
then it works
bashmanpager
I'm working on Solaris 10, using bash. Want to change default pager from "more" to "less" (because "less is more" :). Tried to do the following:
PAGER=less
PS. When I do it in csh via
setenv PAGER less
then it works
Best Answer
Your
sets the shell variable
PAGER
to the valueless
. Forman
(or anything other than the current shell) to see this, you will have to additionally makePAGER
an environment variable. You do this withexport
, either throughor
A shell variable is "exported into the environment" with
export
. This is the same in allsh
-like shells. Exporting a variable in this way is the corollary to thecsh
/tcsh
setenv
command.