黑苹果折腾日记 - 使用篇

  1. 配置终端
    1. 修改主机名
    2. 安装brew
  2. 配置zsh
    1. 安装oh-my-zsh及插件
    2. Insecure completion-dependent directories detected
  3. 软件
    1. 软件下载
  4. 键盘布局
    1. 系统快捷键
  5. 杂七杂八

配置终端

修改主机名

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

软件

软件下载

键盘布局

  • 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)联系垃圾堆主人

文章标题:黑苹果折腾日记 - 使用篇

字数:554

本文作者:cnlnn

发布时间:2021-01-21, 12:19:22

最后更新:2021-01-21, 12:19:22

原始链接:https://cnlnn.ml/posts/f6d58630/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。