mac终端出现on ttys000

解决方法: touch .hushlogin

zsh会提示你更新

[oh-my-zsh] Would you like to update? [Y/n] Y
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory

这种情况是因为删除了.git文件夹,我们进行恢复:

解决方法

cd ~/.oh-my-zsh
git init # you've already done this step, so you can skip
git remote add origin https://github.com/robbyrussell/oh-my-zsh.git
git fetch
git reset --hard origin/master

手动更新命令:

upgrade_oh_my_zsh

文章作者: 阿杜
版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 痕迹
linux学习 linux
喜欢就支持一下吧