26 lines
721 B
Bash
26 lines
721 B
Bash
#!/bin/bash
|
|
|
|
# don't put duplicate lines or lines starting with space in the history.
|
|
shopt -s histappend
|
|
HISTCONTROL=ignoreboth
|
|
HISTFILE=${HOME}/.spool/bash_history
|
|
|
|
# append to the history file, don't overwrite it
|
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
HISTSIZE=500000
|
|
HISTFILESIZE=1000000
|
|
|
|
# check the window size after each command and, if necessary,
|
|
# update the values of LINES and COLUMNS.
|
|
shopt -s checkwinsize
|
|
|
|
# enable programmable completion features
|
|
if ! shopt -oq posix; then
|
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
|
. /usr/share/bash-completion/bash_completion
|
|
elif [ -f /etc/bash_completion ]; then
|
|
. /etc/bash_completion
|
|
fi
|
|
fi
|
|
|