Host a TextMate Bundle on GitHub
Create a repository on GitHub
Go into the Bundle Editor and drag your bundle to your desktop and cd into it in the terminal. This is the key to the whole thing. If you just go into the bundle where it lives in TextMate, you might not get everything it needs. Dragging the file to the desktop makes it a nice, happy package ready to help other people.
Follow GitHub’s instructions to set up and push to the remote repository. Don’t forget to git add . to get everything in there.
Delete your original bundle and then clone from GitHub like so:
cd ~/"Library/Application Support/TextMate/Bundles/"
git clone git://github.com/trey/trey-tmbundle.git "Trey.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'
When you make changes to your Git-ified bundle in the Bundle Editor, you’ll need to Reload Bundles for the changes to show up in your repository. Then you’ll need to git add . and commit / push as you would a normal repository.
Comments
Don’t forget about wycat’s TextMate Gem http://yehudakatz.com/2008/05/19/textmate-gem/
Then all you need to do is type:
textmate install treyThat is cool. I’ll have to try that out.
This is a world full of gems =)
What do you think about that?