0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-12 04:01:14 +02:00

pygmalion: revert multiline prompt change

Fixes #2317
Closes #2321
This commit is contained in:
Marc Cornellà 2020-05-10 20:06:24 +02:00
parent 08cc808d71
commit c52441b624

View file

@ -22,12 +22,7 @@ prompt_pygmalion_precmd(){
local exp_nocolor="$(print -P \"$base_prompt_nocolor$gitinfo_nocolor$post_prompt_nocolor\")"
local prompt_length=${#exp_nocolor}
local nl=""
if [[ $prompt_length -gt 40 ]]; then
nl=$'\n%{\r%}';
fi
PROMPT="$base_prompt$gitinfo$nl$post_prompt"
PROMPT="${base_prompt}${gitinfo}${post_prompt}"
}
prompt_setup_pygmalion