Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Replace NSGlobalDomain with -g argument #128

Merged
merged 1 commit into from
Nov 28, 2016
Merged

Replace NSGlobalDomain with -g argument #128

merged 1 commit into from
Nov 28, 2016

Conversation

Eitot
Copy link
Contributor

@Eitot Eitot commented Nov 12, 2016

-g is a shorthand for NSGlobalDomain or -globalDomain. This PR makes the usage consistent.

@@ -541,7 +541,7 @@ chflags nohidden ~/Library

#### Increase Number of Recent Places
```bash
defaults write .GlobalPreferences NSNavRecentPlacesLimit -int 10 && \
Copy link
Owner

@herrbischoff herrbischoff Nov 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is .GlobalPreferences also a synonym for NSGlobalDomain? I could not find any reference to that. If you have one, please share. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not have a reference. Typing defaults read .GlobalPreferences returns the same preferences as -g, -globalDomain and NSGlobalDomain. My guess is that defaults looks for the name of the file in ~/Library/Preferences. The global preferences are stored in ~/Library/Preferences/.GlobalPreferences.plist.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's good enough for me. ;)

@herrbischoff herrbischoff merged commit 647223b into herrbischoff:master Nov 28, 2016
@Eitot Eitot deleted the nsglobaldomain branch November 28, 2016 14:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants