# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# This will append any new history to the existing file rather than rewriting it
shopt -s histappend
PROMPT_COMMAND='history -a'

# This will ignore simple mistakes such as typing otp instead of opt, or ect instead of etc.
shopt -s cdspell

# Remove duplicates in your history
export HISTCONTROL="ignoredups"
export HISTIGNORE="&:ls:[bf]g:exit"

# This will ensure that multiple line commands stay together in your history.
shopt -s cmdhist
