fish安装基本配置

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

选择你喜欢的样式
在这里插入图片描述
效果如下:

在这里插入图片描述

发布了268 篇原创文章 · 获赞 25 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_43833642/article/details/105224258
今日推荐