Skip to content

Instantly share code, notes, and snippets.

@jfernandez
Created August 9, 2011 20:21
Show Gist options
  • Save jfernandez/1135092 to your computer and use it in GitHub Desktop.
Save jfernandez/1135092 to your computer and use it in GitHub Desktop.
#!/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)
############################################################################
# Enable extended globbing
shopt -s extglob
# Invoke TextMate upon all the files and directories except those listed
mate !(@(cache|db|log|tmp))
# Disable extended globbing
shopt -u extglob
@jfernandez
Copy link
Author

Yeah I'm using Ackmate + Peepopen (http://peepcode.com/products/peepopen)

I wanted to make Peepopen ignore some folders.. but it actually uses a regexp pattern in the prefs. So this script isn't that useful anymore

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