12 de febrero de 2016

Tweaking hidden files in Mac OS X

Aloha!

Ever wondered how to show/hide hidden files in your Mac OS X in the Finder app?

If so, let's get right to it:

Add this two aliases in your ~/.bash_profile file:

# Hidden files tweaks

alias show_hidden_files='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hide_hidden_files='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'

And that's it!

Now, if you want to show the hidden files, just run this command in the console:

$ show_hidden_files

And if you want to hide them back:

$ hide_hidden_files

And that's it! :)


Cheers!


M.-

3 comentarios:

Unknown dijo...

Extremely late on this one! I have a useflul tip though.
Go to finder and tap Cmd+Shift+. and toogle hidden files. No Script, no alias, just a hotkey :P

Matías dijo...

Oh, dear lord! Where were you all these years!? :-P

Unknown dijo...

Lovetheladys1