安装zsh
bash
sudo apt update
sudo apt install zsh
安装oh-my-zsh
bash
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
配置~/.zshrc
bash
sudo vim ~/.zshrc
添加以下内容
vi
ZSH_THEME="steeef"
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
plugins=(git history history-substring-search node npm wd web-search last-working-dir zsh-autosuggestions emotty docker)
安装插件
git clone https://gitee.com/mirrors/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions