1
0
mirror of https://github.com/akelge/zsh synced 2025-07-04 05:29:06 +00:00

More compact prompt

This commit is contained in:
2020-02-12 13:06:06 +01:00
parent ad71b2b2bd
commit 8fb766ba35

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