Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of examples that might be helpful #299

Open
2 of 5 tasks
cweagans opened this issue Aug 17, 2023 · 0 comments
Open
2 of 5 tasks

Lots of examples that might be helpful #299

cweagans opened this issue Aug 17, 2023 · 0 comments
Labels
new command Add a new command

Comments

@cweagans
Copy link

  • I made sure this command is not in the commands list
  • I searched and didn't find this command in the listed issues
  • I know this defaults command exists
  • I know this command works on macOS current version
  • I know this command is deprecated on macOS current version
  • Folder:
  • Command:
  • Argument type (if applicable):
  • Examples:

I have a number of defaults settings listed in https://github.com/cweagans/dotfiles/tree/main/dot_config/macos with inline comments about what each one does.

They are applied with this script: https://github.com/cweagans/dotfiles/blob/main/.chezmoiscripts/darwin/run_once_after_install_defaults.sh.tmpl

If the command is defaults write com.apple.Safari [somekey] -string [somevalue], the config will be in com.apple.Safari.json with the respective JSON key->value pair. The script takes care of determining the data type. There are at least a few in the Safari one that aren't listed on macos-defaults.com.

You might also be interested in using MDM profiles to configure your mac. You can't actually use an MDM service if you're not a business, but you can still install a profile to configure e.g. mail accounts and things like that. Examples of that are here: https://github.com/cweagans/dotfiles/blob/main/dot_config/macos/private_profiles/private_macos.mobileconfig.tmpl (this file was mostly generated with iMazing Profile Editor and then edited to work with the Chezmoi templating stuff I have set up to e.g. pull passwords out of 1password). Not sure if you want to widen the scope of the website to include this kind of stuff, but it seems like it would be at least a good companion site for things that aren't configurable easily (or at all) through defaults.

@cweagans cweagans added the new command Add a new command label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Add a new command
Projects
None yet
Development

No branches or pull requests

1 participant