Created
September 27, 2016 04:40
-
-
Save hex2010/8260c95f6fbfcdaa6bacd359d7b436ee to your computer and use it in GitHub Desktop.
Mac OSX toggle show hidden files in Finder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
showAll=`defaults read com.apple.finder AppleShowAllFiles` | |
if [[ "$showAll" = "NO" ]]; then | |
defaults write com.apple.finder AppleShowAllFiles YES | |
else | |
defaults write com.apple.finder AppleShowAllFiles NO | |
fi | |
killall Finder /System/Library/CoreServices/Finder.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment