skynet/zsh/zsh-grc

29 lines
836 B
Bash

#!/usr/bin/env zsh
# GRC colorizes nifty unix tools all over the place
unalias grc 2> /dev/null
GRC=`command -v grc 2> /dev/null`
if [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
alias as='colorify as'
alias colorify="$GRC -es --colour=auto"
alias configure='colorify ./configure'
alias df='colorify df -kh'
alias diff='colorify diff'
alias dig='colorify dig'
alias docker='colorify docker'
alias du='colorify du'
alias g++='colorify g++'
alias gas='colorify gas'
alias gcc='colorify gcc'
alias ld='colorify ld'
alias make='colorify make'
alias mount='colorify mount'
alias mtr='colorify mtr'
alias netstat='colorify netstat'
alias ping6='colorify ping6'
alias ping='colorify ping'
alias ps='colorify ps'
alias traceroute='colorify /usr/sbin/traceroute'
fi