33

It is possible to show so-called dotfiles/directories like .git or files/directories that have the Hidden attribute in the Finder by running

defaults write com.apple.Finder AppleShowAllFiles 1

from the command line (then running killall Finder to restart it). However, this only works in Finder, not in applications' Open/Save dialogs. In those, one can use the . keyboard shortcut to show these files, but you have to use it each time you open a new dialog as the settings aren't saved.

Does anyone know of any kind of way to make this setting permanent? It could involve a Terminal command, editing a .plist or other file on an application by application basis, anything. This question was asked a while ago with no satisfactory answers, so I'd like to see if there have been any changes in Mountain Lion, or if anyone knows an answer that just missed the first question. I'm currently running 10.8.4, if it makes any difference.

  • 1
    This is NOT a duplicate. This question is about Open/Save Dialogs. The other one ( apple.stackexchange.com/questions/5870/… ) is about Finder. If you do the solution in the other one, it will fix for Finder, but not Open/Save Dialogs. You have to do the solution in this one. – wisbucky Apr 20 '17 at 21:21
39

Just adding the key to the global domain seems to work:

defaults write -g AppleShowAllFiles -bool true

You have to quit and reopen applications to apply changes as usual.

  • 2
    Hooray! Thank you very much, I knew it had to be possible somehow. And I should also add that you don't need to restart Finder for it to work, unlike the original version. Thanks again! – MattDMo Aug 17 '13 at 19:55
  • This is not work. 10.8.4 – diimdeep Aug 18 '13 at 14:23
  • @diimdeep What applications did you test it with? It doesn't work with some applications like TextMate that customize the file dialogs. – Lri Aug 18 '13 at 15:41
  • TextEdit, Sublime Text at least. – diimdeep Aug 18 '13 at 19:04
  • It works for me with TextEdit in 10.8.4. If there is a key in TextEdit's plist (defaults read com.apple.TextEdit AppleShowAllFiles) or ~/Library/Preferences/ByHost/.GlobalPreferences.*.plist (defaults -currentHost read -g AppleShowAllFiles), they override the key in ~/Library/Preferences/.GlobalPreferences.plist. – Lri Aug 18 '13 at 19:20

You must log in to answer this question.

protected by Community Jul 18 '16 at 13:11

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .