acomagu / fish-async-prompt

Make your prompt asynchronous to improve the reactivity.
MIT License
412 stars 25 forks source link

Compatibility with Starship #82

Closed injust closed 4 months ago

injust commented 4 months ago

Title. Just wanted a definitive answer, as I've seen people write that fish-async-prompt only works with native fish prompt. But I also see people's dotfiles using this with Starship...

eljamm commented 4 months ago

Don't know where this was said, but it seems that fish-async-prompt works fine with starship. You just need to have starship init fish | source at the end of your config file as per the starship installation guide.

injust commented 4 months ago

Thanks for the answer. I played around with fish-async-prompt and it seems to work with Starship.

The one big caveat I've found (originally called out in https://github.com/acomagu/fish-async-prompt/issues/74) is that you must starship init fish | source, even in non-interactive shells.

Going to close this as my question's been answered. (This should've been a discussion, sorry!)