侧边栏壁纸
  • 累计撰写 80 篇文章
  • 累计创建 25 个标签
  • 累计收到 10 条评论

目 录CONTENT

文章目录

Ubuntu安装oh my zsh

gstory
2023-03-13 / 0 评论 / 0 点赞 / 1,194 阅读 / 109 字 / 正在检测是否收录...
广告 广告

安装zsh

sudo apt-get install zsh

将shell改为zsh

chsh -s /bin/zsh

下载oh my zsh

sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

安装好了,推荐两个插件

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting

修改.zshrc

vim ~/.zshrc

找到plugins=(git),改为

plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
)

保存后执行

source ~/.zshrc
0

评论区