Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

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 http://manual.macromates.com/en/saving_files#atomic_saves for more info.

share|improve this answer

Your Answer

 
discard

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.