MyGit

3.6.0

fish-shell/fish-shell

版本发布时间: 2023-01-07 22:43:27

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

Notable improvements and fixes

For example:

function multicd
    echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../)
end

abbr --add dotdot --regex '^\.\.+$' --function multicd

This expands .. to cd ../, ... to cd ../../ and .... to cd ../../../ and so on.

Or:

function last_history_item; echo $history[1]; end
abbr -a !! --position anywhere --function last_history_item

which expands !! to the last history item, anywhere on the command line, mimicking other shells’ history expansion.

See the documentation for more.

> touch foo
> sleep 10
> path mtime --relative foo
10
> string shorten --max 10 "Hello this is a long string"
Hello thi…
checks/set.fish (line 471): for: a,b: invalid variable name. See `help identifiers`
for a,b in y 1 z 3
    ^~^

Deprecations and removed features

Scripting improvements

function my_copy
    argparse --min-args 2 -- $argv
    or return

    cp $argv
end
> set --show XDG_DATA_DIRS
$XDG_DATA_DIRS: set in global scope, exported, a path variable with 4 elements
$XDG_DATA_DIRS[1]: |/home/alfa/.local/share/flatpak/exports/share|
$XDG_DATA_DIRS[2]: |/var/lib/flatpak/exports/share|
$XDG_DATA_DIRS[3]: |/usr/local/share|
$XDG_DATA_DIRS[4]: |/usr/share|
$XDG_DATA_DIRS: originally inherited as |/home/alfa/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/|
math min 1 / 0, 5

which would previously print “5” (because in floating point division “1 / 0” yields infinite, and 5 is smaller than infinite) but will now return an error.

git rev-list 3.5.1 | fish_clipboard_copy

fish_clipboard_paste | string join + | math

Interactive improvements

Completions

Improved terminal support

Other improvements

Fixed bugs

For distributors


Download links: To download the source code for fish, we suggest the file named "fish-3.6.0.tar.xz". The file downloaded from "Source code (tar.gz)" will not build correctly. The SHA-256 sum of this file is 97044d57773ee7ca15634f693d917ed1c3dc0fa7fde1017f1626d60b83ea6181. A GPG signature from David Adam (key ID 0x7A67D962D88A709A) is available as "fish-3.6.0.tar.xz.asc".

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

1、 fish-3.6.0.app.zip 9.04MB

2、 fish-3.6.0.pkg 7.92MB

3、 fish-3.6.0.tar.xz 2.76MB

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

查看:2023-01-07发行的版本