Skip to content

Instantly share code, notes, and snippets.

@terrcin
Created March 28, 2011 00:20
Show Gist options
  • Save terrcin/889801 to your computer and use it in GitHub Desktop.
Save terrcin/889801 to your computer and use it in GitHub Desktop.
How I open projects in textmate
#!/bin/bash
############################################################################
# Script to open a directory in TextMate excluding certain directories that
# tend to slow down the Find in Project... function.
#
# Place in an executable loctation with a name of your choosing.
# I use `ate' and have it in ~/Local/bin (which has been added to $PATH)
#
# NTW: from here: https://gist.github.com/111999
#
# I use this to open projects with in textmate to speed up tabbing away and
# then back to textmate. Less files for it to check have changed, so gets
# rid of the big pause before the window properly get focus.
#
############################################################################
# Enable extended globbing
shopt -s extglob
# Invoke TextMate upon all the files and directories except those listed
mate !(@(log|tmp|vendor|<other>))
# Disable extended globbing
shopt -u extglob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment