对于 CentOS 7,请以根用户 root 运行下面命令:
cd /etc/yum.repos.d/ wget https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo yum install fish
对于 CentOS 6,请以根用户 root 运行下面命令:
cd /etc/yum.repos.d/ wget https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_6/shells:fish:release:2.repo yum install fish
官网链接: https://software.opensuse.org/download.html?project=shells%3Afish%3Arelease%3A2&package=fish