作家
登录

如何在Linux上安装友好的交互式shell:Fish

作者: 来源: 2017-12-11 10:38:53 阅读 我要评论

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

 如安在Linux上安装友爱的交互式shell:Fish

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 和它的衍生版上,运行以下敕令来安装它。

  1. sudo pacman -S fish 
  1. man fish 

在 CentOS 7 上以 root 运行以下敕令: 

  1. cd /etc/yum.repos.d/ 
  2.  
  3. wget https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo 
  4.  
  5. yum install fish 

在 CentOS 6 上以 root 运行以下敕令:

  1. cd /etc/yum.repos.d/ 
  2.  
  3. wget https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_6/shells:fish:release:2.repo 
  4.  
  5. yum install fish 

在 Debian 9 上以 root 运行以下敕令: 

  1. wget -nv https://download.opensuse.org/repositories/shells:fish:release:2/Debian_9.0/Release.key -O Release.key 
  2.  
  3. apt-key add - < Release.key 
  4.  
  5. echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/2/Debian_9.0/ /' > /etc/apt/sources.list.d/fish.list 
  6.  
  7. apt-get update 
  8.  
  9. apt-get install fish 

在 Debian 8 上以 root 运行以下敕令:

  1. wget -nv https://download.opensuse.org/repositories/shells:fish:release:2/Debian_8.0/Release.key -O Release.key 
  2.  
  3. apt-key add - < Release.key 
  4.  
  5. echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/2/Debian_8.0/ /' > /etc/apt/sources.list.d/fish.list 
  6.  
  7. apt-get update 
  8.  
  9. apt-get install fish 

在 Fedora 26 上以 root 运行以下敕令:

  1. dnf config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:2/Fedora_26/shells:fish:release:2.repo 
  2.  
  3. dnf install fish 

在 Fedora 25 上以 root 运行以下敕令:

  1. dnf config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:2/Fedora_25/shells:fish:release:2.repo 
  2.  
  3. dnf install fish 

在 Fedora 24 上以 root 运行以下敕令:

  1. dnf config-manager --add-repo https://download.opensuse.org/repositories/shells:fish:release:2/Fedora_24/shells:fish:release:2.repo 
  2.  
  3. dnf install fish 

      推荐阅读

      在Linux启动或重启时执行命令与脚本

    开辟者大年夜赛路演 | 12月16日,技巧立异,北京不见不散 办法 1 &ndash; 应用 rc.local这种办法会应用 /etc/ 中的 rc.local 文件来在启动时履行脚本与敕令。我们在文件中加上一行来履行脚>>>详细阅读


    本文标题:如何在Linux上安装友好的交互式shell:Fish

    地址:http://www.17bianji.com/lsqh/39637.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)