Skip to content

Instantly share code, notes, and snippets.

@indirect
Created February 19, 2010 08:00
Show Gist options
  • Save indirect/308537 to your computer and use it in GitHub Desktop.
Save indirect/308537 to your computer and use it in GitHub Desktop.
tm for easy textmate project access
function setup-tm {
mkdir -p ~/Dropbox/Settings/dotfiles/tmproj
ln -s ~/Dropbox/Settings/dotfiles/tmproj ~/.tmproj
}
function tm {
open ~/.tmproj/$1.tmproj
}
complete -W '$(ls ~/.tmproj | sed s/.tmproj//)' tm
$ mate bundler
<Save Project As… to ~/.tmproj/bundler.tmproj>
$ tm <tab>
bundler homebrew
$ tm b<tab> → tm bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment