See the man pages for details.

  • = GREP_OPTIONS =

Options for grep. Set this to “–color=auto” to get colored grep output. auto takes care not to use colors in case the output of the grep command is piped into another process.

  • = LESS =

Options for less. A reasonable choice for this is “-iM”. -i ignores case in searches. Using -M will change the prompt so it shows the current line number.

  • = PAGER =

Set this to “less”. less is better than more :-).

  • = EDITOR =

Set this to your favorite editor which should be used instead of vi. (nano, joe, emacs, …). This variable is used only by some programs. For example, cvs ci uses this to start an editor which will allow you to provide a commit message.

  • = PS1 =

Colored prompt! Example: “\[\033[01;34m\]\h \w \$ \[\033[00m\]”. Search on the net if you want to tweak this.

  • = INPUTRC =

Location of the configuration file for readline. readline is used by many programs for command-line input, especially bash. You can copy /homes/mmartin/.inputrc to $HOME/.inputrc and set this variable to “$HOME/.inputrc” to get a basic, but useful configuration. Most useful: This will make your delete key work, if it doesn't. Also try out Page-Up (this searches the command history for lines that have the current line as a prefix).

Copy and Paste Version

Put this in your ~/.bashrc:

export GREP_OPTIONS="--color=auto"
export PS1="\[\033[01;34m\]\h \w \$ \[\033[00m\]"
export INPUTRC=$HOME/.inputrc
export PAGER=less
export EDITOR=joe
export LESS="-iM"

Not mentioned above, but just as useful:

export http_proxy="http://proxy:3128/"
export ftp_proxy="http://proxy:3128/"
export no_proxy="intranet"
export CVS_RSH="ssh"
alias l='ls -hlaF --color'