~/.bash_aliases file
# enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi alias l='ls -CF' alias ll='ls -alhF' alias la='ls -A' alias cp='cp -iR' alias df='df -h' alias v='vim' alias md='mkdir' alias rd='rmdir' # Add an "alert" alias for long running commands. Use like so: sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
If this post was useful, consider buying me a coffee ☕ with ₿itcoin — no account needed, any amount welcome.