From TextMate Wiki

Troubleshooting: Templates

If any of the [files sourced in the shell startup]( 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
Page last modified on May 02, 2008, at 19:11 UTC