Updating /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core... fatal: It seems that there is already a rebase-apply directory, and I wonder if you are in the middle of another rebase. If that is the case, please try git rebase (--continue | --abort | --skip) If that is not the case, please rm -fr ".git/rebase-apply" and run me again. I am stopping incase you still have something valuable there.
Last login: Mon Aug 3 18:08:08 on ttys000 [oh-my-zsh] Insecure completion-dependent directories detected: drwxrwxr-x 3 jack admin 96 Aug 3 13:18 /usr/local/share/zsh drwxrwxr-x 4 jack admin 128 Aug 3 13:22 /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.
PPS: 想要重新绑定 shift + space 为补全,不过找不到对应的 zsh code, 擦擦擦。在 linux 下有款终端工具叫 showkey 的貌似可以解决这个问题, 也可以试试终端输入 cat 回车,按键他就会打印出来键符,不过 shift 貌似没给提示。。。
solarized dark 配色和 zsh-autosuggestion 自动提示配色有冲突,会看不到,参考 issue。我本地直接把配色改成系统自带的 Tango Dark 了
设置字体
使用 agnoster 主题时需要加载一个字体,不然很多箭头之类的表示符会显示乱码。下载字体:git clone https://github.com/powerline/fonts.git, 找到 fonts/Meslo Slashed/Meslo LG M Regular for Powerline.ttf 双击安装。 然后打开 iTerm2,按 Command + , 键,打开 Preferences 配置界面,然后Profiles -> Text -> Font -> Chanage Font,选择 Meslo LG M Regular for Powerline 字体。
配置完 zsh 之后,VSCode 的终端会显示乱码,cmd + shift + p 搜索 ‘Preferences: Open Settings(JSON)’ 添加配置 { "terminal.integrated.fontFamily": "Meslo LG M for Powerline" } 即可修复,保存后可以看到效果。