# 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