Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a web project I have multiple environments and a .htaccess.<env> file for each of them. In each of the environments I've made a symbolic link from .htaccess to the right file.

Now, whenever I use TextMate to edit the file through the symlink, the link gets overwritten by a copy of the link's target file. How can I make TextMate to preserve the symlink?

share|improve this question
up vote 2 down vote accepted

Disable Atomic Saves in Advanced Preferences.

When atomic saves are enabled, TextMate actually writes to a new file on Save and then moves the file over (hence overwriting your symbolic link).

See for more info.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.