MyGit

3.4.0

fish-shell/fish-shell

版本发布时间: 2022-03-12 23:21:51

fish-shell/fish-shell最新发布版本:3.7.1(2024-03-19 13:29:28)

Notable improvements and fixes

foo (bar | string collect)
# can now be written as
foo "$(bar)"

# and

foo (bar)
# can now be written as
foo $(bar)
# this will still split on newlines only.
function demonstration
    if true
        set --function foo bar
        set --local baz banana
    end
    echo $foo # prints "bar" because $foo is still valid
    echo $baz # prints nothing because $baz went out of scope
end
> string length --visible (set_color red)foo
3

Deprecations and removed features

> echo foo&bar # will print "foo&bar", instead of running "echo foo" in the background and executing "bar"
> echo foo & bar # will still run "echo foo" in the background and then run "bar"
# with both ampersand-nobg-in-token and qmark-noglob, this argument has no special characters anymore
> open https://www.youtube.com/watch?v=dQw4w9WgXcQ&feature=youtu.be

As a reminder, feature flags can be set on startup with fish --features ampersand-nobg-in-token,qmark-noglob or with a universal variable called fish_features:

> set -Ua fish_features ampersand-nobg-in-token

Scripting improvements

> string match -r --groups-only '(.*)fish' 'catfish' 'twofish' 'blue fish' | string escape
cat
two
'blue '

Interactive improvements

New or improved bindings

Improved prompts

> prompt_pwd --full-length-dirs 2 -d 1 ~/dev/fish-shell/share/tools/web_config
~/d/f/s/tools/web_config

Completions

Improved terminal support

Other improvements

For distributors


Download links: To download the source code for fish, use the file named "fish-3.4.0.tar.xz". The file downloaded from "Source code (tar.gz)" has extra build requirements. The SHA-256 sum of this file is b5b48ab8486b19ef716a32f7f46b88b9ea5356155f0e967ee99f4093645413c5. A GPG signature from David Adam (key ID 0x7A67D962D88A709A) is available as "fish-3.4.0.tar.xz.asc".

相关地址:原始地址 下载(tar) 下载(zip)

1、 fish-3.4.0.app.zip 8.48MB

2、 fish-3.4.0.pkg 7.42MB

3、 fish-3.4.0.tar.xz 3.14MB

4、 fish-3.4.0.tar.xz.asc 833B

查看:2022-03-12发行的版本