-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmac.Rmd
32 lines (19 loc) · 1.28 KB
/
mac.Rmd
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
# Mac OS
## homebrew
- homebrew 安装程序出现以下错误
```
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
```
是由于用户没有修改`$(brew --prefix)/*`即`/usr/local`权限,修改权限即可`sudo chown -R $(whoami) $(brew --prefix)/*`
## 应用程序 {#app}
- 打开`xxx.app`文件时,出现`app已损坏,打不开,你应该将它移到废纸篓`
系统默认不允许用户自行下载安装应用程序。在终端运行`sudo sptcl --master-disable`运行即可。打开系统偏好设置 -> 安全性与隐私 -> 允许从以下位置下载的应用就变成了`任何来源`,双击即可打开app。
### Alfred
Mac效率神器,快速搜索并打开app、文件,可替代spotlight
- 设置激活快捷键`cmd + space`
需取消splotlight快捷键,然后在设置面板里设置即可,详见[此](https://www.alfredapp.com/help/troubleshooting/cmd-space/)
- 搜索不到文件
可能是mac系统索引问题,设置面板选择建立mac os的源文件"Rebuild macOS Metadata",见[此](https://www.alfredapp.com/help/troubleshooting/indexing/)