Table of Contents
bashrc
export PS1="\[\033[0;37m\][\u@\h \t \w]\[\033[00m\] "
set -o vi
export TERM=xterm
export EDITOR=vi
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=5000
HISTFILESIZE=5000
# Save and reload the history after each command finishes
#export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
h() {
_bash_history_sync
#builtin history "$@"
}
_bash_history_sync() {
builtin history -a
HISTFILESIZE=$HISTFILESIZE
builtin history -c
built