summaryrefslogblamecommitdiffstats
path: root/bashrc/common/shopt.sh
blob: a1c8cfa1a49be31f68169021c0f7db6ad641a067 (plain) (tree)
1
2
3
4
5

                    
                
                                       
 










                                         
                                 








                                      
# 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="%F %T    "

# check window size after each command
shopt -s checkwinsize

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

# append history
shopt -s histappend