Skip to content

Instantly share code, notes, and snippets.

@trey
Created May 18, 2012 03:19
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 trey/2722966 to your computer and use it in GitHub Desktop.
Save trey/2722966 to your computer and use it in GitHub Desktop.
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.

Source

@trey
Copy link
Author

trey commented May 18, 2012

former location

This is a Solutions Log post.

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