开辟者大年夜赛路演 | 12月16日,技巧立异,北京不见不散

Fish,友爱的交互式 shell 的缩写,它是一个适于设备于类 Unix 体系的智能而用户友爱的 shell。Fish 有着很多重要的功能,比如主动建议、语法高亮、可搜刮的汗青记录(像在 bash 中 CTRL+r)、智能搜刮功能、极好的 VGA 色彩支撑、基于 web 的设置方法、完美的手册页和很多开箱即竽暌姑的功能。尽管安装并急速应用它吧。无需更多其他设备,你也不须要安装任何额外的附加组件/插件!
在这篇教程中,我们评论辩论如安在 Linux 中安装和应用 fish shell。
尽管 fish 是一个异常用户友爱的并且功能丰富的 shell,但并没有包含在大年夜多半 Linux 发行版的默认仓库中。它只能在少数 Linux 发行版中的官方仓库中找到,如 Arch Linux,Gentoo,NixOS,和 Ubuntu 等。然而,安装 fish 并不难。
在 Arch Linux 和它的衍生版上,运行以下敕令来安装它。
- sudo pacman -S fish
- man fish
在 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
在 Debian 9 上以 root 运行以下敕令:
- wget -nv https://download.opensuse.org/repositories/shells:fish:release:2/Debian_9.0/Release.key -O Release.key
- apt-key add - < Release.key
- echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/2/Debian_9.0/ /' > /etc/apt/sources.list.d/fish.list
- apt-get update
- apt-get install fish
在 Debian 8 上以 root 运行以下敕令:

- wget -nv https://download.opensuse.org/repositories/shells:fish:release:2/Debian_8.0/Release.key -O Release.key
- apt-key add - < Release.key
- echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/2/Debian_8.0/ /' > /etc/apt/sources.list.d/fish.list
- apt-get update
- apt-get install fish
在 Fedora 26 上以 root 运行以下敕令:
- dnf config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:2/Fedora_26/shells:fish:release:2.repo
- dnf install fish
在 Fedora 25 上以 root 运行以下敕令:
- dnf config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:2/Fedora_25/shells:fish:release:2.repo
- dnf install fish
在 Fedora 24 上以 root 运行以下敕令:
- dnf config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:2/Fedora_24/shells:fish:release:2.repo
- dnf install fish
推荐阅读
开辟者大年夜赛路演 | 12月16日,技巧立异,北京不见不散 办法 1 – 应用 rc.local这种办法会应用 /etc/ 中的 rc.local 文件来在启动时履行脚本与敕令。我们在文件中加上一行来履行脚>>>详细阅读
本文标题:如何在Linux上安装友好的交互式shell:Fish
地址:http://www.17bianji.com/lsqh/39637.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示