Last active
January 4, 2016 16:19
-
-
Save welldan97/8646158 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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