Zsh 属于 Shell 的一种,和 Bash 一样,但比 Bash 更好用,Zsh 完全兼容 Bash,拥有极其丰富的插件,其强大的自动补全参数、文件名以及自定义功能,可以大大提高我们使用 Linux 的效率。
本文将会展示安装zsh、美化主题与安装自动填充插件的过程。本文摘选自网络,原文:https://www.cnblogs.com/ShawnChan/p/11723626.html
echo $SHELLapt install -y zshchsh -s /bin/zshapt install -y gitsh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
复制配置文件:
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc主题列表可见github:https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
vim .zshrc 修改 ZSH_THEME="ys"
"ys"为要修改主题的名称,可见github列表
插件列表可见github:https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins
官网:Incremental completion on zsh(https://mimosa-pudica.net/zsh-incremental.html)
wget -O incr-0.2.zsh https://mimosa-pudica.net/src/incr-0.2.zshcp incr-0.2.zsh .oh-my-zsh/plugins/source ~/.oh-my-zsh/plugins/incr*.zshgit clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestionsplugins=(git zsh-autosuggestions)最后使用source ./zshrc重新加载zsh配置文件