fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family. fish includes features like syntax highlighting, autosuggest-as-you-type, and fancy tab completions that just work, with no configuration required.
项目地址:https://github.com/fish-shell/fish-shell
fish就是一个相对比较好用的shell,支持语法高亮等等…
centos
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo
yum install fish
curl -L https://get.oh-my.fish | fish
chsh -s /usr/bin/fish
Mac
brew install fish
which fish
# 将fish的路径添加到下面shell是文件中
sudo vim /etc/shells
# 更改默认shell为fish
chsh -s "which fish"
之后打开terminal默认就是fish了
安装oh-my-fish
curl -L https://get.oh-my.fish | fish
配置自己喜欢的终端样式
# 该命令会在浏览器打开一个配置页面
fish_config
选择你喜欢的样式
效果如下: