Skip to content

Instantly share code, notes, and snippets.

@felsenhower
Last active March 3, 2021 12:24
Show Gist options
  • Save felsenhower/10a91e5943668825dc965c995054ac14 to your computer and use it in GitHub Desktop.
Save felsenhower/10a91e5943668825dc965c995054ac14 to your computer and use it in GitHub Desktop.
Prepare your git commit messages with bullshit
#!/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"
@felsenhower
Copy link
Author

Sample:

#NoSQL hypervisor-aware HTML over YAML markup service manager
#generic GPU-scale SOAP out-scaling DOM cloud shader
#open-source distributed configuration-aware control
#advanced software hardware CMS
#scripting core factory configuration session-scale hypervisor-aware solution

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
#
# Initial commit
#
# Changes to be committed:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment