Created
December 23, 2015 21:54
-
-
Save vaz/1ff08ed41a392e9ed6e2 to your computer and use it in GitHub Desktop.
Bash script to toggle showing hidden files in Finder
This file contains 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
showAllFiles () | |
{ | |
local new old=`defaults read com.apple.finder AppleShowAllFiles`; | |
if [ "$old" = "TRUE" ]; then | |
new="FALSE"; | |
else | |
new="TRUE"; | |
fi; | |
defaults write com.apple.finder AppleShowAllFiles $new; | |
echo -n "com.apple.finder AppleShowAllFiles = "; | |
echo $new; | |
killall Finder | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or just use this: http://www.macupdate.com/app/mac/27025/secrets