2.7b1
版本发布时间: 2017-10-31 20:41:46
fish-shell/fish-shell最新发布版本:3.7.1(2024-03-19 13:29:28)
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.7b1.tar.gz". The file downloaded from "Source code (tar.gz)" will not build correctly. The SHA-256 sum of this file 326dbea5d0f20eba54fa0b0c5525e58b4a39ebd8c52c14cfffc5f4d6cdf55385.
1、 fish-2.7b1.tar.gz 5.49MB
2、 fish-2.7b1.tar.gz.asc 819B