summaryrefslogtreecommitdiffstats
path: root/bashrc/common/shopt.sh
blob: 3552f4d4714a0b0c8b3c7b2ac6659e9ac99f6fa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# bash configuration

# local programs
export PATH="${HOME}/.bash/bin:${PATH}"

# basic search path for chdir
export CDPATH=".:~"

# keep size of history small ...
export HISTCONTROL="ignoreboth:erasedups"

# ... but keep a lot of history
export HISTFILESIZE=5000
export HISTSIZE=5000

# save timestamp in history
export HISTTIMEFORMAT="%+ "

# check window size after each command
shopt -s checkwinsize

# save multi-line command as one line
shopt -s cmdhist

# append history
shopt -s histappend