Ever needed to show those hidden files in Finder? I’ve tested this successfully in both Snow Leopard and Lion.
- Throw these two lines in your ~/.bash_profile (if it doesn’t exist, just create it)
- Reload your .bash_profile. From within terminal:
- Type sf to show all hidden files
- Type hf to hide all typically hidden files
alias sf="defaults write com.apple.Finder AppleShowAllFiles true; killall Finder" alias hf="defaults write com.apple.Finder AppleShowAllFiles false; killall Finder"