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

          
 
                        
                    
                
 
                                                     
                      
 
                                           
                        
 

                          
 
                  
                                       

                    
 
                                                  
                                    
                       
  
 
                              


                                      
 
                                
                                 

                                         
        
  
            
 
# Don't do anything if not running interactively
if [[ $- != *i* ]]; then
    return
fi

# 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
if command -v setterm &>/dev/null; then
    setterm -bfreq 0
fi

# Turn off flow control and control character echo
if command -v stty &>/dev/null; then
    stty -ixon -ctlecho
fi

# Use completion, if available
if [[ -r /etc/bash_completion ]]; then
    source /etc/bash_completion
fi

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