Skip to content

Commit

Permalink
.mutt: Add colordiff support, needs improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
tampakrap committed Jan 21, 2015
1 parent 1200166 commit 009848e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .mutt/color
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,18 @@ color message white black
color search brightwhite magenta
color bold brightyellow default

#color body green default "^diff \-.*"
#color body green default "^index [a-f0-9].*"
#color body green default "^\-\-\- .*"
#color body green default "^[\+]{3} .*"
#color body cyan default "^[\+][^\+]+.*"
#color body red default "^\-[^\-]+.*"
#color body brightblue default "^@@ .*"

color body brightred default "^-.*"
color body brightgreen default "^[+].*"
color body brightwhite default "^diff --git.*"
color body brightwhite default "^index [a-f0-9].*"
color body brightyellow default "^@@.*"

# vim: ft=muttrc
2 changes: 2 additions & 0 deletions .mutt/mailcap
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ application/pdf; /usr/bin/zathura %s; copiousoutput
image/*; /usr/bin/feh %s; copiousoutput
audio/*; /usr/bin/mplayer %s; copiousoutput
video/*; /usr/bin/mplayer %s; copiousoutput
text/x-diff; cat %s | colordiff; copiousoutput
text/x-patch; cat %s | colordiff; copiousoutput

0 comments on commit 009848e

Please sign in to comment.