From RootdevWiki

Jump to: navigation, search

Contents

Controlling Bash History

Don't put duplicate lines in the history.

See bash(1) for more options

export HISTCONTROL=ignoredups
export HISTIGNORE='&'

History Size

Command line:

export HISTSIZE=2000

.bash_history:

export HISTFILESIZE=2000

Prompt

My prompt settings - colour and split line for extra clarity:

PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \n\$ \[\033[00m\]'