[X-Unix] .bash_profile

Christopher Austin-Lane chrsln at aol.com
Fri Jan 9 07:58:46 PST 2004


case "$-" in
   *i*)
     if [ "$SSH_TTY" != "" ]; then
       export PAGER=less
     fi
esac

In the case of an interactive bash shell only, test for SSH, and export 
PAGER=less in the SSH case.

Stephen Galliver wrote on 1/9/04, 10:22 AM:

 > So when I log in via ssh, I have to remember to
 > reset the PAGER to less.



More information about the X-Unix mailing list