This requires imgcat to be installed
- Download the GIFs provided or select your own (make sure the file names are consecutive numbers)
- Navigate into the git hooks folder (under .git/hooks in the repo) and create a file called
post-commit
- Add the following into the file
#!/bin/sh
echo <message>
imgcat <filepath where you put the GIFs folder>/GIFs/$((1 + RANDOM % <number of GIFs>)).gif
e.g. using the provided folder of GIFs and putting that into my Downloads folder
#!/bin/sh
echo Great job on that commit
imgcat ~/Downloads/GIFs/$((1 + RANDOM % 10)).gif