Liunx 安装oh-my-zsh终端并配置
安装zsh
sudo apt install zsh
安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
或者下载源码
git clone https://github.com/ohmyzsh/ohmyzsh.git
cd oh-my-zsh/tools
sh install.sh
修改zsh为默认terminal
chsh -s /bin/zsh $USER
# 重启后生效
修改主题
vim ~/.zshrc
修改ZSH_THEME="ys"
更新配置source ~/.zshrc
安装插件
incr.zsh
自动补全插件
wget http://mimosa-pudica.net/src/incr-0.2.zsh
将此插件放到oh-my-zsh目录的插件库下
修改 ~/.zshrc
,最后一行增加
source ~/.oh-my-zsh/plugins/incr/incr*.zsh