Skip to content

Instantly share code, notes, and snippets.

Created November 15, 2016 12:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
hidden files - refreshFinder, showFiles, hideFiles, toggleFiles
alias refreshFinder='echo "Refreshing Finder . ."; killall Finder /System/Library/CoreServices/'
alias showFiles='echo "Showing All Files . ."; defaults write AppleShowAllFiles YES; refreshFinder;'
alias hideFiles='echo "Hiding Files . ."; defaults write AppleShowAllFiles NO; refreshFinder;'
alias toggleFiles='yn=$(defaults read 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