A Git prepare-commit-msg hook for fancy commit message
Inspired by:
Run following command in your git working directory
Japanese version
curl https://raw.githubusercontent.com/WELLMAX357/git-fancy-message-prefix/master/prepare-commit-msg.ja -o .git/hooks/prepare-commit-msg && chmod +x .git/hooks/prepare-commit-msg
You can add original prefix and emoji by adding an entry to templates
function.
# .git/hooks/prepare-commit-msg
function templates {
# format:
#
# prefix: emoji(code) description
#
# Full Emoji List: https://unicode.org/emoji/charts/full-emoji-list.html
cat <<EOF
fizz: \U1f600 This is an original prefix
feat: \U2728 A new feature
fix: \U1f41e A bug fix
...
EOF
}