Skip to content

Instantly share code, notes, and snippets.

@wezm
Created May 15, 2009 00:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wezm/111999 to your computer and use it in GitHub Desktop.
Save wezm/111999 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment