Skip to main content
  1. 笔记/

Zsh和Oh-My-Zsh的安装和使用指南

·1 min
zsh linux
Table of Contents

安装
#

安装zsh,curl,wget,git,vim

sudo apt install zsh curl wget git vim -y

修改默认终端
#

chsh -s $(which zsh)
#重启zsh
exec zsh

安装oh my zsh(Mac系统同样适用)
#

# 通过wget安装
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

插件
#

zsh-autosuggestions
#

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

修改~/.zshrc

plugins=(  zsh-autosuggestions )

z
#

修改~/.zshrc

plugins=(  z )

插件添加完成后执行以下命令重启

source ~/.zshrc

相关链接
#

https://blog.csdn.net/weixin_43971252/article/details/122225757 https://www.zhihu.com/question/49284484

Ubuntu系统安装MySQL教程
·1 min
ubuntu mysql linux