Skip to content

Instantly share code, notes, and snippets.

@sandroqz
sandroqz / git-blame-colored
Created May 30, 2019 20:21 — forked from lwalen/git-blame-colored
A fancy git blame. Presents code with initials of author to the left. Colors author's names and initials for easy blaming.
#!/usr/bin/env ruby
# Colorize string
class String
def colorize(color_code)
"\e[#{color_code}m#{self}\e[0m"
end
end
class Colors