配置终端
修改主机名
sudo scutil --set HostName laptop
安装brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
配置zsh
安装oh-my-zsh及插件
参考这篇文章oh-my-zsh配置
Insecure completion-dependent directories detected
Last login: Sun Jul 22 12:40:09 on ttys000
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxr-xr-x 3 502 admin 96 Jul 11 10:57 /usr/local/share/zsh
drwxr-xr-x 4 502 admin 128 Jul 11 11:00 /usr/local/share/zsh/site-functions
[oh-my-zsh] For safety, we will not load completions from these directories until
[oh-my-zsh] you fix their permissions and ownership and restart zsh.
[oh-my-zsh] See the above list for directories with group or other writability.
[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of “group” and “others” and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh] compaudit | xargs chmod g-w,o-w
[oh-my-zsh] If the above didn’t help or you want to skip the verification of
[oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
[oh-my-zsh] “true” before oh-my-zsh is sourced in your zshrc file.
根据报错信息,替换目录执行
compaudit | xargs chmod g-w,o-w /usr/local/share/zsh
或者chmod修改权限
chmod 755 /usr/local/share/zsh
再或者添加ZSH_DISABLE_COMPFIX=true
到.zshrc
里忽略提示
echo "ZSH_DISABLE_COMPFIX=true" >> ~/.zshrc && source ~/.zshrc
软件
软件下载
办公
企业微信ㅤ钉钉ㅤ飞书ㅤWPS Office压缩工具
Keka
键盘布局
- Command ⌘ (对应Start键,开始键,Windows键)
- Shift ⇧ (Shift键)
- Option ⌥ (Alt键)
- Control ⌃(Ctrl键)
- Caps Lock ⇪ (还是Caps Lock键)
系统快捷键
快捷键 | 功能 |
---|---|
F11 | 显示桌面 |
Command + 空格 | 聚焦搜索 |
Command + 换行键 | 切换程序 |
Command + ` | 切换窗口 |
Control + 空格 | 切换输入法 |
Control + 上箭头 | 打开调度中心 |
Control + 下箭头 | 打开调度中心 |
杂七杂八
- 显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder
- 恢复隐藏文件
defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder
转载请注明来源,欢迎对文章中的引用来源进行考证,文章可能具有时效性,欢迎指出任何有错误、已失效或不够清晰的表达 ,可通过[邮件](mailto:cnlnnn@qq.com)联系垃圾堆主人