From 39abde91ab56e8f5ba9bd309ddcb17177f42dec9 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 10 Feb 2012 14:44:30 -0500 Subject: [PATCH] Colorize make and diff if possible --- colordiffrc | 7 +++++++ sh_common/aliases | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 colordiffrc diff --git a/colordiffrc b/colordiffrc new file mode 100644 index 00000000..13f390b7 --- /dev/null +++ b/colordiffrc @@ -0,0 +1,7 @@ +banner=no +color_patches=no +plain=off +newtext=darkgreen +oldtext=darkred +diffstuff=darkcyan +cvsstuff=darkblue diff --git a/sh_common/aliases b/sh_common/aliases index f8aec10b..45eb6161 100644 --- a/sh_common/aliases +++ b/sh_common/aliases @@ -13,6 +13,8 @@ alias ri='ri -f ansi' alias speedtest='wget --delete-after http://cachefly.cachefly.net/10mb.test' alias vimload='vim -c "so %"' +which colordiff &>/dev/null && alias diff=colordiff +which colormake &>/dev/null && alias make=colormake alias grep='grep --color=auto' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto'