Skip to content

Instantly share code, notes, and snippets.

@mkdynamic
Created May 10, 2009 11:02
Show Gist options
  • Save mkdynamic/109591 to your computer and use it in GitHub Desktop.
Save mkdynamic/109591 to your computer and use it in GitHub Desktop.
Shortcut for TextMate – open project file if exists, or just open the directory if not
mm(){
[ -f *.tmproj ] && open -a 'textmate' `ls -lG *.tmproj | awk '{print $9}'` || mate .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment