Skip to content

Instantly share code, notes, and snippets.

@FirePanther
Last active November 19, 2016 17:23
Show Gist options
  • Save FirePanther/f3f46ffe2fcd48a9021dcf80f29fa331 to your computer and use it in GitHub Desktop.
Save FirePanther/f3f46ffe2fcd48a9021dcf80f29fa331 to your computer and use it in GitHub Desktop.
Automatically adds a Finder "Git" Tag to all your repos
#!/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