From Ian Lunn:
… All I need do now is type
showFiles
andhideFiles
whenever I need to show/hide OS X’s hidden files. Here’s how you can do it too.
How to set up an alias for AppleShowAllFiles
. Edit ~/.bashrc
:
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'