Skip to content

Instantly share code, notes, and snippets.

@hkurosawa
Created April 19, 2012 13:18
Show Gist options
  • Save hkurosawa/2420936 to your computer and use it in GitHub Desktop.
Save hkurosawa/2420936 to your computer and use it in GitHub Desktop.
toggle Finder setting to show hidden files
#!/bin/bash
#toggle OSX Finder setting to show the hidden dotfiles
if [ `defaults read com.apple.finder AppleShowAllFiles` -eq 1 ]; then
defaults write com.apple.finder AppleShowAllFiles -bool NO;
else
defaults write com.apple.finder AppleShowAllFiles -bool YES;
fi
killall Finder;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment