Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

rprompt on same line as lprompt, not one second line #145

Closed
Tritlo opened this issue Nov 17, 2015 · 4 comments
Closed

rprompt on same line as lprompt, not one second line #145

Tritlo opened this issue Nov 17, 2015 · 4 comments

Comments

@Tritlo
Copy link
Contributor

Tritlo commented Nov 17, 2015

Greetings,

when I set

POWERLEVEL9K_PROMPT_ON_NEWLINE=true

the left prompt appears on the same line as the rprompt, and not the line below (as seen in the image associated with the variable).
rpromptnotonnewline

My config is as follows. My terminal is "terminator", though this also happens on "gnome-terminal"

POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='▶'
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='◀'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="\e[44m\e[1m\e[33m $ \e[0m\e[34m▶\e[0m "

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context time dir)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status vcs)

POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"

POWERLEVEL9K_STATUS_VERBOSE=false
POWERLEVEL9K_TIME_FORMAT="%D{%T}"
@dritter
Copy link
Member

dritter commented Nov 17, 2015

@Tritlo just to be clear: You want the RPROMPT on the second line, right? I think there is no flexpoint for that now. We put some effort in showing the RPROMPT on the first line...

Here are the the relevant lines.

@Tritlo
Copy link
Contributor Author

Tritlo commented Nov 17, 2015

Yes, on the second line. Thanks, I'll make a fork with the relevant changes, which I can use for me.
I just want to be able to put more info, yet still be able to read the commands.

@Tritlo Tritlo closed this as completed Nov 17, 2015
@Tritlo Tritlo reopened this Nov 17, 2015
@bhilburn
Copy link
Member

@Tritlo - We would be interested in merging this feature into mainline. Once you have developed it, could you submit it as a PR so that we can pull it in?

@Tritlo
Copy link
Contributor Author

Tritlo commented Nov 17, 2015

This adds a new variable POWERLEVEL9K_RPROMPT_ON_NEWLINE, which, if set to true, makes the rprompt appear on the newline, instead of the same line as the lprompt. If accepted, I'll add this variable to the wiki documentation as well.

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

3 participants