From TextMate Wiki

Troubleshooting: Templates

If any of the [files sourced in the shell startup](http://macromates.com/textmate/manual/shell_commands#search_path) changes the current working directory, it will break the templates.

If you need to change the current working directory (e.g. in `~/.bash_profile`) then you can restrict it to only happen for interactive shells by using a line like this:

    $- = *i* ? && cd «directory»

- - -

See also: [Shell Commands](ShellCommands)

Retrieved from http://wiki.macromates.com/Troubleshooting/Templates
Page last modified on May 02, 2008, at 19:11 UTC