Skip to content

Instantly share code, notes, and snippets.

@welldan97
Last active January 4, 2016 16:19
Show Gist options
  • Save welldan97/8646158 to your computer and use it in GitHub Desktop.
Save welldan97/8646158 to your computer and use it in GitHub Desktop.
master_char='๐Ÿ—ป'
improvement_char='๐ŸŒ€'
bug_char='๐Ÿ›'
experiment_char='๐ŸŽ‡'
documentation_char='๐Ÿ““'
feature_char='๐Ÿ’ก'
eval-var() {
eval echo $1
}
underscore-upfront-not-current() {
sed 's/^[^*]/_/'
}
number-or-underscore-upfront() {
sed 's/\(.*\)\/..-\([0-9]*\)./\2 \1\//' |
sed 's/^[^0-9]/_ &/'
}
emojify-git-dir() {
sed "s/$1\//$(eval-var \"\$${1}_char\") /"
}
emojify-master() {
sed "s/master/$master_char/"
}
columnize() {
column -t | sed 's/^_/ /'
}
humanize() {
sed 's/-/ /g' | sed 's/_/ /g'
}
emojify-git() {
underscore-upfront-not-current |
number-or-underscore-upfront |
emojify-git-dir bug |
emojify-git-dir documentation |
emojify-git-dir experiment |
emojify-git-dir feature |
emojify-git-dir improvement |
emojify-master |
columnize |
humanize
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment