Search code examples
sshfstextmate2

How to prevent ._ (dot underscore) files?


I am using Textmate 2 to edit a rails project on remote Linux server via sshfs.

When I save a file (e.g. README.rdoc) there is another file created (i.e. ._README.rdoc):

-rw-rw-r--  1  4096 Feb 17 17:19 ._README.rdoc
-rw-rw-r--  1   486 Feb 17 17:19 README.rdoc

The Textmate doc mentioned how to disable extended attributes:

defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1

but ._ files are still created after the above defaults write.

Is there a way to disable creation of ._ files when using sshfs + Textmate 2?


Solution

  • To disable Extended Attributes in Textmate 2, use:

    defaults write com.macromates.TextMate.preview volumeSettings '{ "/Users/ohho/Mount/" = { extendedAttributes = 0; }; }'
    

    Where /Users/ohho/Mount/ is the parent folder of all my sshfs mounted folders.