Skip to content

Instantly share code, notes, and snippets.

@jeremyruppel
Created April 9, 2013 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyruppel/5341855 to your computer and use it in GitHub Desktop.
Save jeremyruppel/5341855 to your computer and use it in GitHub Desktop.
See at a glance what files in your project drawer have (or have not!) been affected by this topic branch.
osxlabel(){
osascript -e "tell app \"Finder\" to set label index of (POSIX file \"$PWD/$0\" as alias) to 4"
}
export -f osxlabel
git diff --name-only HEAD develop | xargs -n 1 bash -c osxlabel "$@"
@jeremyruppel
Copy link
Author

While testing this, applescript choked on a couple files saying it couldn't create aliases (code -1700). No idea wth that means and the filenames looked fine.

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