Skip to content

Instantly share code, notes, and snippets.

@ejschmitt
Forked from wezm/gist:111999
Created January 17, 2011 21:21
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 ejschmitt/783514 to your computer and use it in GitHub Desktop.
Save ejschmitt/783514 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 `mt'
# Original: http://www.wezm.net/technical/2009/05/exclude-directories-from-textmate-side-bar-for-faster-find-in-project/
############################################################################
# Enable extended globbing
shopt -s extglob
# Invoke TextMate upon all the files and directories except those listed
mate !(@(cache|log|tmp))
# Disable extended globbing
shopt -u extglob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment