The release of the interactive fish shell 3.2.0 (friendly interactive shell) has been announced, evolving as a more user-friendly alternative to bash and zsh. Fish supports features like syntax highlighting with automatic error detection, suggestions for possible input based on past command history, command and option auto-completion using their descriptions in man pages, out-of-the-box comfort without the need for additional configuration, a simplified scripting language, X11 clipboard support, and convenient tools for searching command history. The project code is distributed under the GPLv2 license. Ready packages have been created for Ubuntu, Debian, Fedora, openSUSE, and RHEL.
Among the new features added:
- Support for undo and redo changes while editing the command line has been added. Undo is triggered using Ctrl+Z, and redo with Alt+/.
- Built-in commands now process data as it arrives, for example, the string replacement operation starts output immediately without waiting for all input data. Additionally, built-in commands can now be used in command chains that pass data through unnamed pipes, such as 'dmesg -w | string match '*usb*'.
- If the path in the command prompt does not fit the width of the terminal line, it is now partially truncated instead of being replaced with '>'.
- The input auto-completion with the Tab key has been improved (for ambiguous completions, a list of replacements is displayed immediately without requiring a second Tab press).
- A new helper function 'fish_add_path' has been added to append paths to the $PATH environment variable, automatically filtering out duplicates.
- More explicit error diagnostics have been ensured when executing the test command.
- In the syntax '$x[$start..$end]', it is now permissible to omit the $start or $end values, which default to 1 and -1 respectively. For example, echo $var[..] is equivalent to $var[1..-1] and will output from the first to the last element.
- The performance of many functions has been significantly increased. The capabilities of string processing functions have been expanded.
Source: opennet.ru
