Skip to content

Instantly share code, notes, and snippets.

@wegotoeleven
Last active August 5, 2022 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wegotoeleven/e6df9c189e23a318d9fff4e941530776 to your computer and use it in GitHub Desktop.
Save wegotoeleven/e6df9c189e23a318d9fff4e941530776 to your computer and use it in GitHub Desktop.
Global Preferences
# Show all
defaults domains | tr ',' '\n'
# Global prefs
$(defaults read -g AppleLocale)
# is the same as
$(defaults read .GlobalPreferences AppleLocale)
# is the same as
$(defaults read NSGlobalDomain)
#i.e. NSGlobalDomain, -g and .GlobalPreferences are all the same, and the location of the preference file differs per user context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment