ubuntu18.04安装zsh+oh-my-zsh
1. 安装zsh,并修改默认shell为zsh
apt install curl zsh -y
chsh -s /bin/zsh
2. 修改密码配置文件
vim /etc/passwd
3. 安装git和oh-my-zsh
apt-get install git -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
4. 安装显示历史输入提示
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
vim ~/.zshrc
plugins=(git docker docker-compose history history-substring-search node npm wd web-search last-working-dir zsh-autosuggestions vi-mode)
- 灰色部分就是提示