Skip to content

Instantly share code, notes, and snippets.

@professorjamesmoriarty
Created January 24, 2016 05:58
Show Gist options
  • Save professorjamesmoriarty/4580ba744ec35245a3a6 to your computer and use it in GitHub Desktop.
Save professorjamesmoriarty/4580ba744ec35245a3a6 to your computer and use it in GitHub Desktop.
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" !~N !~T !~F !~p !~P"
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" ~N !~T !~F !~p !~P"
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" ~T !~F !~p !~P"
color index red default "~b \"john(_g|\!| jenkins| shaggytwodope)|shaggy\" ~F !~p !~P"
color header white default '^(status|lines|date|received|sender|references):'
color body green default "[*]?|@shaggytwodope|johnathon|john|jenkins|shaggy|shaggytwodope|johnathan|)[*]?"
color body green default "[*]?|@twodopeshaggy|twodope|)[*]?"
color body default default "(BAD signature)"
color body default default "(Good signature)"
color body default default "^gpg: Good signature .*"
color body default default "^gpg: "
color body default default "^gpg: BAD signature from.*"
mono body bold "^gpg: Good signature"
mono body bold "^gpg: BAD signature from.*"
# yes, an insance URL regex
color body default default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
# and a heavy handed email regex
#color body J_magent default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"
# Various smilies and the like
#color body default default "<[Gg]>" # <g>
#color body default default "<[Bb][Gg]>" # <bg>
#color body default default " [;:]-*[})>{(<|]" # :-) etc...
# *bold*
#color body default default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
#mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
# _underline_
#color body default default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
#mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
# /italic/ (Sometimes gets directory names)
#color body default default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
#mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
# Border lines.
#color body default default "( *[-+=#*~_]){6,}"
#folder-hook . "color status J_black J_status "
#folder-hook gmail/inbox "color status J_black default "
#folder-hook gmail/important "color status J_black default "
color sidebar_new yellow default
color progress default magenta
color sidebar green default
color normal white default
color hdrdefault cyan default
color quoted yellow default
color quoted1 color28 default
color quoted2 color22 default
color quoted3 color23 default
color signature color243 default
color indicator green default
color error brightred default
color status yellow default
color tree magenta default
color tilde magenta default
color message cyan default
color markers cyan default
color attachment color238 default
color search default green
color index_author cyan default '(~t twodopeshaggy@gmail\.com)'
color index_author cyan default '(~C twodopeshaggy@gmail\.com)'
color index_tags yellow default
color index red default '(~F)'
color index_number color238 default
color index_date color243 default
color body brightblue default "(ftp|http|https)://[^ ]+"
color header blue default "^From:.*"
color header magenta default "^Subject:.*"
color header color27 default "^X.*"
color header yellow default "^Tag.*"
color header red default '^(cc|bcc):'
color header green default '^(to):'
#inline patch
color body green default "^> diff --git.*"
color body white default "^> index [a-f0-9].*"
color body yellow default "^> \-\-\- .*"
color body green default "^> [\+]{3} .*"
color body blue default "^> @@.*"
color body green default "^> [\+][^\+]+.*"
color body yellow default "^> \-[^\-]+.*"
# Patch syntax highlighting
#color normal white default
color body brightwhite default ^[[:space:]].*
color body green default ^(diff).*
color body green default "^diff --git.*"
color body yellow default ^[\-\-\-].*
color body green default ^[\+\+\+].*
color body green default ^[\+].*
#color body red default ^[\-].*
#color body brightblue default [@@].*
color body brightwhite default ^(\s).*
color body red default ^(Signed-off-by).*
color body cyan default ^(Docker-DCO-1.1-Signed-off-by).*
color body brightwhite default ^(Cc)
color body yellow default "^diff \-.*"
color body brightwhite default "^index [a-f0-9].*"
color body brightblue default "^---$"
color body yellow default "^\-\-\- .*"
color body green default "^[\+]{3} .*"
color body green default "^[\+][^\+]+.*"
color body yellow default "^\-[^\-]+.*"
color body brightblue default "^@@ .*"
color body red default "LGTM"
color body brightmagenta default "-- Commit Summary --"
color body brightmagenta default "-- File Changes --"
color body brightmagenta default "-- Patch Links --"
color body green default "^Merged #.*"
color body red default "^Closed #.*"
color body brightblue default "^Reply to this email.*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment