mirror of https://github.com/akelge/zsh
More compact prompt
This commit is contained in:
parent
ad71b2b2bd
commit
8fb766ba35
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue