仅限centOS。
喜欢fish这个工具,不过每次到新的服务器上或者重装服务器后都得找命令麻烦死了。而且大多时候直接 yum install fish都是找不到的。写了个脚本来安装fish工具....
#!/bin/bash
yum -y install yum-utils
sudo yum-config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo
yum -y install fish
如果是windows下建立的sh文件需要通过dos2unix去转换格式才能在linux上执行....
否则就会报 “xxx坏的解释器” 之类的错误。
执行脚本注意有没有权限。
网友评论