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.