tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PAGER=less



On Sat, Oct 15, 2011 at 07:13:02PM +0200, Jean-Yves Migeon wrote:
> Index: root/dot.profile
> ===================================================================
> RCS file: /cvsroot/src/etc/root/dot.profile,v
> retrieving revision 1.25
> diff -u -p -r1.25 dot.profile
> --- root/dot.profile  21 Jun 2011 05:31:29 -0000      1.25
> +++ root/dot.profile  15 Oct 2011 17:07:37 -0000
> @@ -21,6 +21,14 @@ umask 022
>  
>  export ENV=/root/.shrc
>  
> +if [ -x `which vi` ]; then
> +     export EDITOR=vi
> +fi
> +
> +if [ -x `which less` ]; then
> +     export PAGER=less
> +fi
> +
>  # Do not display in 'su -' case
>  if [ -z "$SU_FROM" ]; then
>          echo "We recommend that you create a non-root account and use su(1) 
> for root access."

If anything, use "type vi" etc...

Joerg


Home | Main Index | Thread Index | Old Index