Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hidden files - refreshFinder, showFiles, hideFiles, toggleFiles
alias refreshFinder='echo "Refreshing Finder . ."; killall Finder /System/Library/CoreServices/Finder.app'
alias showFiles='echo "Showing All Files . ."; defaults write com.apple.finder AppleShowAllFiles YES; refreshFinder;'
alias hideFiles='echo "Hiding Files . ."; defaults write com.apple.finder AppleShowAllFiles NO; refreshFinder;'
alias toggleFiles='yn=$(defaults read com.apple.finder AppleShowAllFiles); if [ $yn = "YES" ]; then hideFiles; else showFiles; fi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment