this post was submitted on 10 Nov 2025
150 points (99.3% liked)

Linux

10176 readers
545 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

Fish shell, a popular user-friendly command-line shell, has announced version 4.2, a new release that builds on the 4.0 series. Among the most visible improvements is an upgrade to history-based autosuggestions, which now properly handle multi-line commands.

Fish 4.2 also improves how prompts are managed: transient prompts that contain more lines than the final one are now cleared properly, preventing visual clutter on screen. Similarly, the shell now hides parts of a multi-line prompt that have scrolled out of view, eliminating duplicated lines after repainting.

you are viewing a single comment's thread
view the rest of the comments
[–] Vorticity@lemmy.world 12 points 1 week ago* (last edited 1 week ago) (23 children)

What benefits does a shell like this have over bash and how hard is it to transition?

[–] tom@jlai.lu 10 points 1 week ago (3 children)

Fish is great out of the box!

Check out the Fish for Bash users guide since it explains the main differences.

The few issues I’ve seen for daily use are that export does not work and you need to use set -x VAR value instead, $PS1 is not recognized because Fish uses its own prompt system, and wildcards work a bit differently...

[–] rezad@lemmy.world 1 points 1 week ago (1 children)

export does not work

works for me in fish.

[–] victorz@lemmy.world 2 points 1 week ago* (last edited 1 week ago)

In fish, man export:

export is a function included for compatibility with POSIX shells. In general, the set <> builtin should be used instead. When called without arguments, export prints a list of currently-exported variables, like set -x.

So it's not really a proper built-in command, but a wrapper around set. But for all intents and purposes... 👍

load more comments (1 replies)
load more comments (20 replies)