2.7.0
版本发布时间: 2017-11-23 14:17:41
fish-shell/fish-shell最新发布版本:3.7.1(2024-03-19 13:29:28)
There are no major changes between 2.7b1 and 2.7.0. If you are upgrading from version 2.6.0 or before, please also review the release notes for 2.7b1 (included below).
Xcode builds and macOS packages could not be produced with 2.7b1, but this is fixed in 2.7.0.
--
The release notes for fish 2.7b1 are as follows:
Notable improvements
- A new
cdh
(change directory using recent history) command provides a more friendly alternative to prevd/nextd and pushd/popd (#2847). - A new
argparse
command is available to allow fish script to parse arguments with the same behavior as builtin commands. This also includes thefish_opt
helper command. (#4190). - Invalid array indexes are now silently ignored (#826, #4127).
- Improvements to the debugging facility, including a prompt specific to the debugger (
fish_breakpoint_prompt
) and astatus is-breakpoint
subcommand (#1310). -
string
supports newlower
andupper
subcommands, for altering the case of strings (#4080). The case changing is not locale-aware yet. -
string escape
has a new--style=xxx
flag wherexxx
can bescript
,var
, orurl
(#4150), and can be reversed withstring unescape
(#3543). - History can now be split into sessions with the
fish_history
variable, or not saved to disk at all (#102). - Read history is now controlled by the
fish_history
variable rather than the--mode-name
flag (#1504). -
command
now supports an--all
flag to report all directories with the command.which
is no longer a runtime dependency (#2778). - fish can run commands before starting an interactive session using the new
--init-command
/-C
options (#4164). -
set
has a new--show
option to show lots of information about variables (#4265).
Other significant changes
- The
COLUMNS
andLINES
environment variables are now correctly set the first timefish_prompt
is run (#4141). -
complete
's--no-files
option works as intended (#112). -
echo -h
now correctly echoes-h
in line with other shells (#4120). - The
export
compatibility function now returns zero on success, rather than always returning 1 (#4435). - Stop converting empty elements in MANPATH to "." (#4158). The behavior being changed was introduced in fish 2.6.0.
-
count -h
andcount --help
now return 1 rather than produce command help output (#4189). - An attempt to
read
which stops because too much data is available still defines the variables given as parameters (#4180). - A regression in fish 2.4.0 which prevented
pushd +1
from working has been fixed (#4091). - A regression in fish 2.6.0 where multiple
read
commands in non-interactive scripts were broken has been fixed (#4206). - A regression in fish 2.6.0 involving universal variables with side-effects at startup such as
set -U fish_escape_delay_ms 10
has been fixed (#4196). - Added completions for:
-
as
(#4130) -
cdh
(#2847) -
dhcpd
(#4115) -
ezjail-admin
(#4324) - Fabric's
fab
(#4153) -
grub-file
(#4119) -
grub-install
(#4119) -
jest
(#4142) -
kdeconnect-cli
-
magneto
(#4043, #4108) -
mdadm
(#4198) -
passwd
(#4209) -
pip
andpipenv
(#4448) -
s3cmd
(#4332) -
sbt
(#4347) -
snap
(#4215) - Sublime Text 3's
subl
(#4277)
-
- Lots of improvements to completions.
- Updated Chinese and French translations.
--
Download links:
To download the source code for fish, we suggest the file named "fish-2.7.0.tar.gz". The file downloaded from "Source code (tar.gz)" will not build correctly. The SHA-256 sum of this file is 3a76b7cae92f9f88863c35c832d2427fb66082f98e92a02203dc900b8fa87bcb
.
1、 fish-2.7.0.app.zip 2.74MB
2、 fish-2.7.0.pkg 1.66MB
3、 fish-2.7.0.tar.gz 5.49MB
4、 fish-2.7.0.tar.gz.asc 833B