2014-02-17 4 views
0

Textmate 2를 사용하여 원격 Linux 서버의 레일 프로젝트를 sshfs을 통해 편집하고 있습니다. ._ (밑줄) 파일을 방지하는 방법은 무엇입니까?

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

가의 TextMate의 문서가 how to disable extended attributes 언급

:

defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1 

하지만 ._ 파일이 여전히 후에 작성됩니다 내가 파일을 저장할 때

(예 : README.rdoc)가 생성 다른 파일 (예 : ._README.rdoc)가 상기 defaults write.

sshfs + Textmate 2를 사용할 때 ._ 파일을 사용하지 않도록 설정하는 방법이 있습니까? TextMate를 2

답변

3

To disable Extended Attributes는 사용 /Users/ohho/Mount/ 내 모든 SSHFS의 부모 폴더입니다

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

폴더를 장착.

0

내가이 작동하지 않는 명령을 다음과 같이 시도로 : 작동하지 을 : -

I have taken reference from : 

https://github.com/textmate/textmate/wiki/Hidden-Settings 하고 지금은 잘 작동 "을 기본값 com.macromates.textmate OakDocumentDisableFSMetaData 1 쓰기".

TextMate use extended attributes to store caret position, etc. 

On file systems which don’t support extended attributes 

(대부분의 네트워크 파일 시스템), OS X (예컨대 ._filename) 와 도트 밑줄 프리픽스 보조 파일을 생성한다.

If you don’t want these files, you can disable the use of extended 

속성. 이것은 현재 volumeSettings 키로 제어됩니다. 그 값은 (1) 경로 접두사가있는 연관 배열입니다. (2) 해당 경로에 대한 설정이있는 다른 연관 배열. (현재 만 extendedAttributes 이 지원됩니다.)

So, if we wanted to disable extended attributes for files under /net/: 

기본값은 '{com.macromates.TextMate.preview volumeSettings 쓰기 "/ 인터넷 /"= {extendedAttributes = 0; }; } '

관련 문제