Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 947 forks source link

iTerm2 shell integration mark as prompt segment #1261

Open dimitrisfasoulas opened 5 years ago

dimitrisfasoulas commented 5 years ago

It would be nice to have iterm2 integration mark as a prompt segment.

Right now on a 2 line setup it looks like this image (its the small blue triangle between the prompts)

I would like to be able to add it after the newline of the left prompt.

so something like POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir_writable dir newline *iterm_mark* vcs)

Or any other solution that would look nicer for 2 line prompts

Syphdias commented 5 years ago

Hey @dimitrisfasoulas, do you use POWERLEVEL9K_PROMPT_ADD_NEWLINE? If this is the case, I think the position will be adjusted a little bit with the next release (currently on next branch). It should be on the first line then. I currently don't have a way to test this. Basically, these two blocks will be swaped. Will this solve your problem?

dimitrisfasoulas commented 5 years ago

Yes it will, (sorry for the l8 reply)