Over the past decade, prompts have evolved to show an incredible amount of information, such as time, git status, dev environment, etc. But the prompt

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2025-01-05 20:30:14

Over the past decade, prompts have evolved to show an incredible amount of information, such as time, git status, dev environment, etc.

But the prompt is rendered after the previous command has finished. That's fantastic if you are actively working on something in the terminal.

However, if you take a break, make changes in another terminal tab, in your code editor, or in a graphical git GUI, and then come back to your terminal, the prompt will display outdated information.

This is particularly annoying when you need to read over the terminal history to understand when commands were executed and how long they took.

It should work with many fish prompts, but it has been designed specifically to work with the amazing starship prompt and the fish-async-prompt plugin for the highest level of customization and performance.

This plugin has been tested with fish v3.7.1 as well as v4.0b1 on macOS and Linux. Prior versions may also work, but are not tested.

Leave a Comment