caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 383 forks source link

Feature right prompt #119

Open acgtyrant opened 8 years ago

acgtyrant commented 8 years ago

I add a simple build_rprompt function and two rprompt about user and host.

I think RPROMPT is suitable to place user and host these stable information while the PROMPT hold those info which change frequently. So I would advice you to remove the CONTEXT components.

Here is the demo.

1456834180

dawikur commented 8 years ago

I like the idea, #83 (vim mode marker) would work great with this. But I think there are few things we can improve.

acgtyrant commented 8 years ago

@dawikur Sorry for my procrastination. Let me reply:

Actually I do not add newline before RPROMPT explicitly, I do not know why is it below the line of PROMPT.

You are right, I will remove the 'r' prefix later.

Personally, I would like to handle the state of leftness/rightness in SEGMENT_SEPARATOR, rather than change all prompt_ functions...

dawikur commented 8 years ago

Isn't new line between Left and RIght from [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == true ]] && PROMPT="$PROMPT$NEWLINE" ?

dawikur commented 8 years ago

@acgtyrant #125 was merged, can you maybe use similar approach in your changes?

dawikur commented 8 years ago

@acgtyrant Any update on this?

acgtyrant commented 8 years ago

@dawikur Sorry, I will update in weekend...

tunnckoCore commented 8 years ago

I think it would be great if each segment can have $BULLETTRAIN_*_PLACE option.

for example

BULLETTRAIN_STATUS_PLACE='left' # or 0 - left; 1 - right

https://github.com/bhilburn/powerlevel9k may help for strategy. It looks good too.

dawikur commented 7 years ago

Can we refresh this PR?

dawikur commented 7 years ago

@acgtyrant can you update your PR to changes introduced in #188?