Ported powerline-shell to Rust

Hi *,

I’ve ported the wonderful powerline-shell prompt generator (https://github.com/b-ryan/powerline-shell) from python to rust to save myself the python bootup on every command submission and speed things up in general. It’s order of magnitude faster now - even without any optimization or computing the segments in parallel. I concentrated on the bash shell and the segments I’m using on a daily basis like cwd, git, hostname, etc.

If you could spare the time, give it a go. I would love to get your feedback on the code:



1 Like

Nice. I personally like having a pretty prompt, a lot.

Did you consider joining force with https://crates.io/crates/powerline-rs or https://crates.io/crates/silver?

Nice, I will have to have a look because I have a powerline shell. I have no idea if it uses python under the hood, because it's been a couple of years since I installed it.

Strange thing is, you have the same artifacts in the arrows than I have. If you find a solution for that, I'd be most interested:

Hi Bruno,

thanks for pointing me to these two projects. I have to confess, that i wasn’t aware of them. According to the maintainer Powerline-rs seems to be in maintenance mode. But nevertheless, joining forces is always a good idea…

Powerline shell is coded in python, prompter in Rust for performance reasons. The issue you are facing here seems to be caused by the font. Have you tried various fonts and sizes? Cheers, Matthias

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.