一、安装zsh
1 | sudo apt install zsh -y |
二、安装oh-my-zsh
1 | sh -c "$(wget -O- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)" |
三、安装zsh-autosuggestions
1 | git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
修改配置文件(~/.zshrc)
1 | plugins=(其他插件 zsh-autosuggestions) |
四、主题
添加主题文件~/.oh-my-zsh/themes/killf.zsh-theme
,内容为:
1 | PROMPT="%(?:%{$fg_bold[green]%}%n@%m:%{$fg_bold[red]%}%n@%m)%{$reset_color%}:%{$fg[blue]%}%c%{$reset_color%}$ " |
修改配置文件(~/.zshrc)
1 | ZSH_THEME="killf" |
- 本文作者: killf
- 本文链接: http://www.killf.info/Linux/install-oh-my-zsh/
- 版权声明: 本博客所有文章除特别声明外,均采用 Apache License 2.0 许可协议。转载请注明出处!