fish 4.3.0
This release comprises 285 commits since 4.2.1, contributed by 27 authors, 15 of which are new committers.
Deprecations and removed features
- fish no longer sets universal variables by default, which simplifies configuration. Specifically, the
fish_color_*,fish_pager_color_*andfish_key_bindingsvariables are now set in the global scope by default. After upgrading to 4.3.0, fish will (once and never again) migrate these universals to globals set at startup in the~/.config/fish/conf.d/fish_frozen_theme.fishand~/.config/fish/conf.d/fish_frozen_key_bindings.fishfiles. We suggest that you delete those files and set your theme in~/.config/fish/config.fish.- You can still configure fish to propagate theme changes instantly; see here for an example.
- You can still opt into storing color variables in the universal scope via
fish_config theme savethough unlikefish_config theme choose, that does not support dynamic theme switching based on the terminal’s color theme (see below).
- In addition to setting the variables which are explicitly defined in the given theme,
fish_config theme choosenow clears only color variables that were set by earlier invocations of afish_config theme choosecommand (which is how fish’s default theme is set).
Scripting improvements
- New status language command allows showing and modifying language settings for fish messages without having to modify environment variables.
- When using a noninteractive fish instance to compute completions,
commandline --cursorworks as expected instead of throwing an error (#11993). fish_tracecan now be set toallto also trace execution of key bindings, event handlers as well as prompt and title functions.
Interactive improvements
- When typing immediately after starting fish, the first prompt is now rendered correctly.
- Completion accuracy was improved for file paths containing
=or:(#5363). - Prefix-matching completions are now shown even if they don’t match the case typed by the user (#7944).
- On Cygwin/MSYS, command name completion will favor the non-exe name (
foo) unless the user started typing the extension. - When using the exe name (
foo.exe), fish will use to the description and completions forfooif there are none forfoo.exe. - Autosuggestions now also show soft-wrapped portions (#12045).
New or improved bindings
ctrl-w(backward-kill-path-component) also deletes escaped spaces (#2016).- New special input functions
backward-path-component,forward-path-componentandkill-path-component(#12127).
Improved terminal support
- Themes can now be made color-theme-aware by including both
[light]and[dark]sections in the theme file. Some default themes have been made color-theme-aware, meaning they dynamically adjust as your terminal’s background color switches between light and dark colors (#11580). - The working directory is now reported on every fresh prompt (via OSC 7), fixing scenarios where a child process (like
ssh) left behind a stale working directory (#12191). - OSC 133 prompt markers now also mark the prompt end, which improves shell integration with terminals like iTerm2 (#11837).
- Operating-system-specific key bindings are now decided based on the terminal’s host OS.
- Focus reporting is enabled unconditionally, not just inside tmux. To use it, define functions that handle the
fish_focus_inorfish_focus_outevents. - New feature flag can be turned on to prevent fish from trying to work around some incompatible terminals.
For distributors and developers
- Tarballs no longer contain prebuilt documentation, so building and installing documentation requires Sphinx. To avoid users accidentally losing docs, the
BUILD_DOCSandINSTALL_DOCSconfiguration options have been replaced with a newWITH_DOCSoption. fish_key_readerandfish_indentare now installed as hardlinks tofish, to save some space.
Regression fixes:
- (from 4.1.0) Crash on incorrectly-set color variables (#12078).
- (from 4.1.0) Crash when autosuggesting Unicode characters with nontrivial lowercase mapping.
- (from 4.2.0) Incorrect emoji width computation on macOS.
- (from 4.2.0) Mouse clicks and
ctrl-ledge cases in multiline command lines (#12121). - (from 4.2.0) Completions for Git remote names on some non-glibc systems.
- (from 4.2.0) Expansion of
~$USER.
Thanks to everyone who contributed through issue discussions, code reviews, or code changes.
Welcome our new committers: Denys Zhak, ELginas, Gleb Smirnov, Juho Kuisma, Julio Napurí, Kristof Mattei, Nikita COEUR, PowerUser64, Tair Sabirgaliev, Toyosatomimi no Miko, Zhizhen He, huaji2369, oliwia, xtqqczze, チセ
Welcome back our returning committers: Asuka Minato, Branch Vincent, Daniel Rainer, David Adam, Fabian Boehm, Jesse Harwin, Johannes Altmanninger, Nahor, Peter Ammon, exploide, phanium, seg6
Download links: To download the source code for fish, we suggest the file named fish-4.3.0.tar.xz. The file downloaded from Source code (tar.gz) will not build correctly. A GPG signature using this key is available as fish-4.3.0.tar.xz.asc.
The files called fish-4.3.0-linux-*.tar.xz contain standalone fish binaries for any Linux with the given CPU architecture.