git - zsh having right prompt on same level as left using prezto -


i'm new zsh , prezto. in bash shell want have current path on left , current branch @ right can see in picture far good.....

prompt

... problem right part of prompt in second line , not in 1 path in!

# define prompts. prompt=" [ ${_prompt_steeef_colors[3]}%n%f@${_prompt_steeef_colors[2]}%m%f ] ${_prompt_steeef_colors[5]}%~%f  "'$python_info[virtualenv]'"$ " rprompt='${vcs_info_msg_0_}' 

(complete source code: here)

how can achieve both path , branch @ same line in custom prezto prompt?

if don't care rendering artifacts when resizing windows, can use control characters hack functionality in:

local _lineup=$'\e[1a' local _linedown=$'\e[1b' rprompt=%{${_lineup}%}"some stuff"%{${_linedown}%} 

i found here: https://superuser.com/questions/357107/zsh-right-justify-in-ps1/737454#737454


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -