Basically lolcommits but in a 6 line shell script, for macOS only
Will take a picture of you every time you create a commit and save it as ~/.commitcam/$PROJECT_NAME/$SHA.jpg
- Install dependencies
$ brew install imagesnap
- Download commitcam, e.g.
$ sudo curl -o /usr/local/bin/commitcam https://raw.githubusercontent.com/rrpff/commitcam/refs/heads/main/commitcam
- Set permissions
$ sudo chmod +x /usr/local/bin/commitcam
- Create global git templates
$ mkdir -p ~/.git-templates/hooks
$ git config --global init.templatedir '~/.git-templates'
- Set
~/.git-templates/hooks/post-committo the following:
#!/bin/sh
commitcam &
- More permissions!
$ chmod +x ~/.git-templates/hooks/post-commit
-
Run
git initin any existing repositories to enable -
Smile!