Last active
March 24, 2016 09:21
-
-
Save mattghali/00b66ebc6e5b51ca144c to your computer and use it in GitHub Desktop.
browse osx defaults
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
# dumps all default domains visible from your user account. | |
# happy dumping! matt ghali - @bizzyunderscore | |
rm /tmp/stop | |
touch /tmp/defaults-read | |
defaults domains | tr , '\n' | sed 's/^ //' \ | |
| while read pref; do | |
[ -f /tmp/stop ] && break | |
grep -q -- "$pref" /tmp/defaults-read || defaults read "$pref" \ | |
| less -P "$pref" ; echo "$pref" >> /tmp/defaults-read | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: