Last active
November 19, 2016 17:23
-
-
Save FirePanther/f3f46ffe2fcd48a9021dcf80f29fa331 to your computer and use it in GitHub Desktop.
Automatically adds a Finder "Git" Tag to all your repos
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/bash | |
# requires 'tag' binary from https://github.com/jdberry/tag | |
# auto git tag | |
{ | |
find $HOME -type d \ | |
! -path '*Trash' \ | |
-name ".git" -exec dirname {} \; | while read line; do \ | |
./tag -a Git "$line"; done | |
} &> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment