Skip to content

Instantly share code, notes, and snippets.

@defenestrator
Last active August 29, 2015 14: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 defenestrator/5d5d3fd729b58cc87288 to your computer and use it in GitHub Desktop.
Save defenestrator/5d5d3fd729b58cc87288 to your computer and use it in GitHub Desktop.
hiddenFilesOsxToggle.sh
#!/bin/bash
STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == YES ];
then
defaults write com.apple.finder AppleShowAllFiles NO
else
defaults write com.apple.finder AppleShowAllFiles YES
fi
killall -TERM Finder
@defenestrator
Copy link
Author

Add to automator; run as shell script, under /bin/bash (or use your .zsh settings!)
Make a keyboard shortcut. I use "⌘⇧."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment