Your Bash profile can contain settings and aliases for how you want your environment set up. This can help you be more productive and help limit the chance of making mistakes.

Usually this is ~/.bashrc or ~/.bash_profile.

Safe (Re)Moving

Have the shell prompt before overwriting and/or deleting files.

alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"

Make it work better

Show more user friendly information

alias df='df -h'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'

Save yourself

Save your keystrokes

alias h='htop'

Automate

Automate tmux so you can just run it and it will either create a new session if there isn’t one, or attach to the current one.

alias t='tmux has -t main ; if [ $? -eq 1 ] ; then tmux new -s main ; else tmux attach -t main ; fi'