zsh 与 bash / sh 一样属于 Terminal 终端工具,通过 oh-my-zsh 可以扩展更丰富的主题插件,诸如命令提示、高亮、自动补全等...

本文 啥也不会给你讲 因为我是写给自己看的

安装 zsh

apt install zsh
chsh -s /bin/zsh  # 更换默认的shell

安装 oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

~/.zshrc 

zsh-syntax-highlighting 必须是最后一个插件来源。

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

git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
最后修改:2022 年 03 月 12 日
如果觉得我的文章对你有用,请随意赞赏