aliases (551B)
1 # .aliases 2 3 # grep: add colour. 4 if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin || "$(uname)" == Linux ]]; then 5 alias grep='grep --color=auto' 6 alias fgrep='fgrep --color=auto' 7 alias egrep='egrep --color=auto' 8 fi 9 10 # ls: add colour and file type hints. 11 if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin ]]; then 12 alias ls='ls -FG' 13 elif [[ "$(uname)" == Linux ]]; then 14 alias ls='ls -F --color=auto' 15 fi 16 alias l='ls -l' 17 alias ll='ls -la' 18 19 # Recent history. 20 alias h='fc -l' 21 22 # Be paranoid. 23 alias cp='cp -ip' 24 alias mv='mv -i' 25 alias rm='rm -i'