Last active
March 3, 2021 12:24
-
-
Save felsenhower/10a91e5943668825dc965c995054ac14 to your computer and use it in GitHub Desktop.
Prepare your git commit messages with bullshit
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
#!/bin/sh | |
# This git hook prepares your commit messages with five lines of technology bullshit in full-width characters to choose from. | |
# For information about bullshit on Arch Linux: | |
# See https://github.com/fceschmidt/bullshit-arch | |
# For information on the full-width character converter: | |
# See https://gist.github.com/felsenhower/e103a0f6c2354b9d74afd9e6e60c16c5 | |
# For information about how to install a global git hook for all repos: | |
# See https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook | |
i=0 | |
while [ $i -lt 5 ] | |
do | |
echo -n '#' | |
bullshit | full-width | |
i=`expr $i + 1` | |
done | cat - "$1" > "$1"'.temp' | |
mv "$1"'.temp' "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample: