macOS Default Setting

0x80 前言

该篇文章主要用于记录macOS下defaults操作的相关指令。

0x81 命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 通用参数
-g/-globalDomain
-currentHost
-bool YES/NO

# 指针速度读写
defaults read -g com.apple.mouse.scaling
defaults write -g com.apple.mouse.scaling 0.5

# 禁用字体渲染(Mojave)
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
defaults read -g CGFontRenderingFontSmoothingDisabled

# 字体渲染级别
defaults write -g AppleFontSmoothing 2
defaults read -g AppleFontSmoothing

# 设置语言首选项
defaults write com.apple.Safari AppleLanguages '(zh-CN)'
defaults read com.apple.Safari

# 开启AppStore调试菜单
defaults write com.apple.appstore ShowDebugMenu -bool true

# No more Finder pop up when iDevice connects
defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool YES

# Disable iDevice management in Finder
defaults write "Apple Global Domain" ignore-devices -bool YES

# Carrier testing(Catalina)
defaults write com.apple.AMPDevicesAgent carrier-testing -bool YES