12 de febrero de 2016

Tweaking hidden files in Mac OS X


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! :)



No hay comentarios: