Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fish_right_prompt #80

Closed
ecraven opened this issue Jun 8, 2012 · 7 comments
Closed

Add support for fish_right_prompt #80

ecraven opened this issue Jun 8, 2012 · 7 comments
Milestone

Comments

@ecraven
Copy link
Contributor

ecraven commented Jun 8, 2012

Support for a right-side prompt like in zsh to show arbitrary data (mostly used for time or VCS status) would be great! As an example, see http://www.nexoid.at/tmp/rprompt.png

@ridiculousfish
Copy link
Member

I learned about RPROMPT just today. It's awesome and I'd love to implement it.

@sorin-ionescu
Copy link

@ridiculousfish You can learn a lot from Zsh via Oh My Zsh. There are lots of features in Zsh that are not available in BASH nor Fish. BASH is not a good shell for inspiration.

Also, since Fish does not have a wide adoption, you can further clean up its syntax.

@ridiculousfish
Copy link
Member

RPROMPT may be easy. I'll aim for fish 2.0.

@Soares
Copy link
Contributor

Soares commented Oct 15, 2012

Any word on this? It's a big feature I miss coming from zsh.

If it's difficult to do this with a fish_rprompt function or something it might be easier to add a special escape sequence in the fish_prompt string which means the rest should be right-aligned. Then again, I'm not sure if that's any easier.

@ridiculousfish
Copy link
Member

It's still in the 2.0 milestone, so it's still something I plan to do, unless someone beats me to it.

I anticipate the difficult parts are around wrapping and window resizing.

@ridiculousfish
Copy link
Member

This is the fish_right_prompt function

There are some line wrapping issues as anticipated. We're generally about as good as zsh (which isn't very good).

#382

@ridiculousfish
Copy link
Member

Docs updated.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants