← 返回首页

OpenBSD上安装Fish Shell

无意中发现了Fish Shell,对我来说是个全新的东东,也有很多看起来不错的特性。决定试一下。 不过OpenBSD上没有fish shell的软件包,需要自己编译。幸好编译的过程还算简单顺利。 先安装需要的工具:

pkg_add -v gmake autoconf

安装autoconf的时候要选择2.60或更高的版本。 然后根据autoconf的版本设置变量AUTOCONF_VERSION:

export AUTOCONF_VERSION=2.69  #我安装的是autoconf-2.69p1

接下来下载fish shell的源码包。我选择到github上下载。fishshell.com上应该也有,但是我打不开。 https://github.com/fish-shell/fish-shell/archive/master.zip 然后解压。我用的是7z (7zip):

7z x master.zip

解压后得到一个fish-shell-master文件夹。接下来编译。

cd fish-shell-master

autoconf

./configure

gmake 

gmake install  # 需要root权

一切顺利的话,运行fish命令即可进入fish shell 至于fish shell的配置、特性等等,后面的博客中我们再聊(我也还没看完文档呢)