Skip to content

Instantly share code, notes, and snippets.

@tarranjones
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
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