More compact prompt

This commit is contained in:
Andrea Mistrali 2020-02-12 13:06:06 +01:00
parent ad71b2b2bd
commit 8fb766ba35
1 changed files with 4 additions and 4 deletions

View File

@ -201,13 +201,13 @@ prompt_pure_preprompt_render() {
local expanded_prompt local expanded_prompt
expanded_prompt="${(S%%)PROMPT}" expanded_prompt="${(S%%)PROMPT}"
if [[ $1 == precmd ]]; then # if [[ $1 == precmd ]]; then
# Initial newline, for spaciousness. # Initial newline, for spaciousness.
print # print
elif [[ $prompt_pure_last_prompt != $expanded_prompt ]]; then # elif [[ $prompt_pure_last_prompt != $expanded_prompt ]]; then
# Redraw the prompt. # Redraw the prompt.
prompt_pure_reset_prompt prompt_pure_reset_prompt
fi # fi