feehey
V2EX  ›  macOS

macOS 总是生成.DS_Store 文件,怎么办,不想生成啊,网上的指令不起作用,如何永久消灭?

  •  
  •   feehey · Oct 25, 2016 · 4771 views
    This topic created in 3515 days ago, the information mentioned may be changed or developed.
    9 replies    2016-10-25 22:53:11 +08:00
    daiqiangbudainiu
        3
    daiqiangbudainiu  
       Oct 25, 2016
    @elviscai 他是起一个服务,监控到有 ds 文件就删除吧。并不能真正的阻止 ds 文件生成
    wadjj
        4
    wadjj  
       Oct 25, 2016
    本地的无法禁止生成,只能禁止在网络地址中生成
    wadjj
        5
    wadjj  
       Oct 25, 2016
    joey0904
        6
    joey0904  
       Oct 25, 2016
    据说是无法阻止生成的,只要不打开 finder 就可以

    当然 用 bash 浏览的话,就没事
    feehey
        7
    feehey  
    OP
       Oct 25, 2016
    那好吧,我只是强迫症,在编辑器中目录中会显示,上传 github 时会显示,我还是记住手动 rm .DS_Store 吧,谢谢各位了。
    welkin001
        8
    welkin001  
       Oct 25, 2016
    @feehey gitignore
    firemiles
        9
    firemiles  
       Oct 25, 2016 via Android
    @feehey 设置全局 gitignore 排除, git 里就感觉不到这个文件了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3189 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 11:49 · PVG 19:49 · LAX 04:49 · JFK 07:49
    ♥ Do have faith in what you're doing.