aboutsummaryrefslogblamecommitdiff
path: root/bash/bashrc
blob: 5e37d3f44646dc28eff782792746aa0229e51012 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                
                         
 
                        
                    
                
 
                                                     
                      
 
                                           
                        
 

                          
 

                            
 

                                                 
 
                              
                                                            
 






                                 

  
# Don't do anything if not running interactively
[[ -z "$PS1" ]] && return

# Keep plenty of history
HISTFILESIZE=1000000
HISTSIZE=1000000

# Ignore duplicate commands and whitespace in history
HISTCONTROL=ignoreboth

# Keep the times of the commands in history
HISTTIMEFORMAT='%F %T  '

# Don't tell me about mail
unset MAILCHECK

# Never beep at me
setterm -bfreq 0 &>/dev/null

# Turn off annoying and useless flow control keys
stty -ixon &>/dev/null

# Use completion, if available
[[ -r /etc/bash_completion ]] && source /etc/bash_completion

# Load any supplementary scripts
if [[ -d "$HOME/.bashrc.d" ]]
then
    for file in $HOME/.bashrc.d/*
    do
        source $file
    done
fi