Skip to content

Instantly share code, notes, and snippets.

@sdarlington
Created December 1, 2014 16:53
Show Gist options
  • Save sdarlington/3fb7be935862416a109b to your computer and use it in GitHub Desktop.
Save sdarlington/3fb7be935862416a109b to your computer and use it in GitHub Desktop.
Find the most recently edited project or workspace and open it
mdfind "(kMDItemContentType =='com.apple.xcode.project') || (kMDItemContentType == 'com.apple.dt.document.workspace') " -0 | xargs -0 ls -t | head -1 | cut -f1 -d: | xargs open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment