参考链接:https://www.cnblogs.com/ezrealiu/p/11909152.html
1.安装zsh
# 安装git
$ sudo apt install git
#安装zsh软件包
$ sudo apt-get install -y zsh
# 安装ohmyzsh
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 设置为默认shell
$ chsh -s /usr/bin/zsh
# 安装字体库
$ sudo apt-get install fonts-powerline
# 修改配置文件,更改主题
$ sudo vi ~/.zshrc
查看主题风格:https://github.com/ohmyzsh/ohmyzsh/wiki/themes
重启即可
2.安装插件
# 进入插件路径
$ cd ~/.oh-my-zsh/plugins
# 下载自动补齐、高亮、建议插件
$ wget http://mimosa-pudica.net/src/incr-0.2.zsh
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
$ git clone https://github.com/zsh-users/zsh-autosuggestions
$ source incr*.zsh
# 修改配置文件
$ vi ~/.zshrc
plugins=(git
zsh-syntax-highlighting
zsh-autosuggestions)
$ source zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
3.使用zsh后ros命令失效
$ vi ~/.zshrc
在最后添加:
source /opt/ros/kinetic/setup.zsh
$ roscore