aboutsummaryrefslogblamecommitdiff
path: root/bash/bashrc
blob: ae303d511ef0521fc7a2abed95ccf3943e7bea1d (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
setterm -bfreq 0 2>/dev/null

# Turn off flow control and control character echo
stty -ixon -ctlecho 2>/dev/null


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