Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2006 03:48:50 -0800
From:      "Kenyon Ralph" <kralph@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Where is $PAGER defined?
Message-ID:  <13d4d6bb0603220348m4aee6c81t4f136076eaea2d10@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
The subject says it all - Where is the environment variable $PAGER defined?

If I define PAGER myself in /etc/profile, it is still set to "more"
upon login.  I've done grep -R PAGER /etc and got nothing (except
/etc/profile of course, which apparently is being overridden).

Thanks!

$ uname -a
FreeBSD sloth 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13
UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

$ echo $BASH_VERSION
3.00.16(1)-release

$ cat /etc/profile
shopt -s checkwinsize
set -o vi

alias chgrp=3D'chgrp -v'
alias chmod=3D'chmod -v'
alias chown=3D'chown -v'
alias cp=3D'cp -iv'
alias df=3D'df -h'
alias du=3D'du -sh'
alias egrep=3D'egrep --color'
alias fgrep=3D'fgrep --color'
alias g=3D'gvim'
alias grep=3D'grep --color'
alias l=3D'ls -a'
alias ll=3D'ls -la'
alias ln=3D'ln -iv'
alias ls=3D'ls -GFh'
alias mkdir=3D'mkdir -v'
alias mv=3D'mv -iv'
alias rm=3D'rm -Iv'
alias rmdir=3D'rmdir -v'
alias vi=3D'vim'

export EDITOR=3D"/usr/local/bin/vim"
export VISUAL=3D"/usr/local/bin/vim"
export PAGER=3D"/usr/bin/less -MiR"
export LESSOPEN=3D"|/usr/local/bin/lesspipe.sh %s"
export LESS=3D"-MiR"
export HISTCONTROL=3Dignoredups
export HISTSIZE=3D1000
export HISTFILESIZE=3D1000

if [[ ${EUID} =3D=3D 0 ]] ; then
    PS1=3D'\[\033[\e[32m\]\t \[\033[01;31m\]\h \[\033[01;34m\]\w \$ \[\033[=
00m\]'
    else
    PS1=3D'\[\033[\e[32m\]\t \[\033[01;32m\]\u@\h \[\033[01;34m\]\w \$
\[\033[00m\]'
fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13d4d6bb0603220348m4aee6c81t4f136076eaea2d10>