Where is $PAGER defined?

Kenyon Ralph kralph at gmail.com
Wed Mar 22 11:48:52 UTC 2006


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 at 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='chgrp -v'
alias chmod='chmod -v'
alias chown='chown -v'
alias cp='cp -iv'
alias df='df -h'
alias du='du -sh'
alias egrep='egrep --color'
alias fgrep='fgrep --color'
alias g='gvim'
alias grep='grep --color'
alias l='ls -a'
alias ll='ls -la'
alias ln='ln -iv'
alias ls='ls -GFh'
alias mkdir='mkdir -v'
alias mv='mv -iv'
alias rm='rm -Iv'
alias rmdir='rmdir -v'
alias vi='vim'

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

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


More information about the freebsd-questions mailing list