Mostly, but not always, about developing software.

Monday, June 15, 2009

Open gem in Textmate

I frequently use the gemdoc bash completion to quickly view Ruby Gem RDocs. A quick addition lets me open a gem in Textmate:


gemmate() {
mate $GEMDIR/gems/`$(which ls) $GEMDIR/gems | grep $1 | sort`
}
complete -o default -o nospace -F _gemdocomplete gemmate


Now I can do

gemmate webby-0.9.4

No comments:

Post a Comment

Twitter Updates

    follow me on Twitter

    Followers