目 录CONTENT

文章目录

oh-my-zsh相关配置

smallkun
2023-10-18 / 0 评论 / 0 点赞 / 148 阅读 / 756 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2024-01-26,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我删除。

安装zsh

sudo apt-get install zsh

将默认 shell 改成 zsh

chsh -s /bin/zsh 

安装 oh my zsh

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

安装extract

vim ~/.zshrc
plugins=(extract)

安装autojump

sudo apt-get install autojump
vim ~/.zshrc
plugins=(extract autojump)

安装 zsh-autosuggestions 插件

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

编辑~/.zshrc 文件

vim ~/.zshrc
plugins=(extract autojump zsh-autosuggestions)

安装 zsh-syntax-highlighting 插件

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

编辑~/.zshrc 文件

vim ~/.zshrc
plugins=(extract autojump zsh-autosuggestions zsh-syntax-highlighting)
source ~/.zshrc
0

评论区