Skip to content

Instantly share code, notes, and snippets.

@noahd1
Created May 26, 2010 18:51
Show Gist options
  • Save noahd1/414889 to your computer and use it in GitHub Desktop.
Save noahd1/414889 to your computer and use it in GitHub Desktop.
#!/bin/bash
DIR=$(find vendor -name "$1*" -type d -depth 2)
if [ "$DIR" = "" ]; then
echo "\"$1*\" not found in vendor/gems, vendor/plugins or vendor/garnets"
else
echo "Opening $DIR"
mate $DIR
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment