• Home
  • About
  • Articles

Tip: Move to directory and open in TextMate

August 7th 2009

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
}