Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 31 lines (23 sloc) 980 Bytes
#!/bin/bash
if [ ! `defaults read com.apple.finder AppleShowAllFiles` == "0" ]; then
echo "Writing default: Don't show all files in finder..."
defaults write com.apple.finder AppleShowAllFiles 0
killall Finder
fi
if [ ! `defaults read com.apple.screencapture disable-shadow` == "1" ]; then
echo "Writing default: Disable shadows on screenshots of windows..."
defaults write com.apple.screencapture disable-shadow 1
killall SystemUIServer
fi
if [ ! `defaults read com.apple.dashboard mcx-disabled` == "1" ]; then
echo "Writing default: Hide the Dashboard and related widgets..."
defaults write com.apple.dashboard mcx-disabled 1
killall Dock
fi
echo "Writing default: Show developer menu in Safari..."
defaults write com.apple.Safari IncludeDebugMenu 1
echo "Writing default: Don't remember open windows in Safari..."
defaults write com.apple.Safari NSQuitAlwaysKeepsWindows 0
killall Safari
# Make Library visible
/Developer/Tools/SetFile -a v ~/Library/