Skip to content

Instantly share code, notes, and snippets.

@tarranjones
Created November 15, 2016 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarranjones/03668d1825ca89e9e2d28783a041960e to your computer and use it in GitHub Desktop.
Save tarranjones/03668d1825ca89e9e2d28783a041960e to your computer and use it in GitHub Desktop.
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