侧边栏壁纸
博主头像
痕迹 博主等级

行动起来,活在当下

  • 累计撰写 35 篇文章
  • 累计创建 9 个标签
  • 累计收到 1 条评论

目 录CONTENT

文章目录

oh-my-zsh 提示更新解决答案

阿杜
2024-10-26 / 0 评论 / 0 点赞 / 23 阅读 / 0 字

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

0

评论区