Fish Shell 3.0 新功能

Fish Shell 3.0 新功能

fish源码:https://github.com/fish-shell/fish-shell

今天Fish 宣布发布了3.0, 不过需要手动安装

下载地址:https://github.com/fish-shell/fish-shell/releases/download/3.0.0/fish-3.0.0.tar.gz

源码安装:

wget https://github.com/fish-shell/fish-shell/releases/download/3.0.0/fish-3.0.0.tar.gz
tar -xvf fish-3.0.0.tar.gz
cd fish-3.0.0/
mkdir build
cd build
cmake ..
make
sudo make install

更多介绍,请参考官网。

1、支持Posix标准:&&(like and),||(like or),!(like not)

echo hello && echo world

3.0.0以前的版本,fish不支持&&使得很多bash脚步无法运行,造成了很不好的体验。现在终于支持&&了。

2、支持autojump写成 j

3.0.0之前的版本,我们需要在~/.config/fish/config.fish添加

alias j "autojump"

3.0.0 以后的版本中我们不在需要这个alias了。

3、内置支持Math

不再是bc的封装。

math 1+1 outputs 2.

math $status - 128 outputs the numerical exit status of the last command minus 128.

math 10 / 6 outputs 1.666667.

math -s0 10.0 / 6.0 outputs 1.

math -s3 10 / 6 outputs 1.666.

math "sin(pi)" outputs 0.

4、alias多了一个-s or --save选项

alias eh “echo hello” -s

5、增加wait命令

新增了 wati命令,用于等待后台进程

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值