Add support for fish_right_prompt #80

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

Comments

Projects
None yet
4 participants
@ecraven
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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Jun 8, 2012

Member

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

Member

ridiculousfish commented Jun 8, 2012

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

@sorin-ionescu

This comment has been minimized.

Show comment
Hide comment
@sorin-ionescu

sorin-ionescu Jun 8, 2012

@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 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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Jun 12, 2012

Member

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

Member

ridiculousfish commented Jun 12, 2012

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

@Soares

This comment has been minimized.

Show comment
Hide comment
@Soares

Soares Oct 15, 2012

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Oct 16, 2012

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.

Member

ridiculousfish commented Oct 16, 2012

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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Nov 8, 2012

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

Member

ridiculousfish commented Nov 8, 2012

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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Nov 8, 2012

Member

Docs updated.

Member

ridiculousfish commented Nov 8, 2012

Docs updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment