tomafro.net · about · on github · on delicious · on twitter · on last.fm

Tip: Move to directory and open in TextMate

Since adding this to my zsh configuration, I'm finding I use it all the time:

# Change directory and open TextMate in a single command
# Usage: tm ~/Projects/sites/tomafro.net

tm() {
  cd $1
  mate $1
}
Tom Ward · 7th August 2009 · tiny · tip · zsh · osx · textmate