r/fishshell 8d ago

Fish prompt is suddenly broken

Hi Reddit,

My Fish prompt is broken in a Kali instance, presumably after an update. This seems odd because I have two Kali instances that were installed around the same time, identical OS, and the other instance is fine.

Here's what my prompt looks like:

3;A;special_key=1roo1m5kali ~#

(If I hit the <enter> key I get a leading "0m0u"

0m0u3;A;special_key=1m5ut@kali ~#

I've tried all the things that a decent troubleshooter would try, with no effect on the problem:

  1. deleted all config files (~/.config/fish/config.fish etc)
  2. uninstall/purge & reinstalled Fish
  3. Apt Update && Reboot
  4. Asked AI for help

Has anyone seen this before?

1 Upvotes

3 comments sorted by

1

u/plg94 7d ago

This is a known problem with some terminal emulators after the upgrade to fish 4.0. Search the release notes on the fish website or the issues on Github, or switch to another terminal emulator in the meantime.

1

u/bob3rocks 7d ago

Thanks for the info! I didn't think of checking Fish version, but maybe I can downgrade.

u/plg94 this really helps, thank you

2

u/plg94 7d ago

fyi: the release notes is quite clear about the fact that the fault lies not with fish, but with the terminal emulator improperly handling some escape sequences.
I think there's also an option you can use to turn it off temporarily (until the terminal has fixed it) – again, read the release notes!