From 7b6a6eb17aa05797814d09f98daa3eb572ef33e7 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 16 Jul 2019 14:27:33 +0100 Subject: [PATCH] Add newline between prompts if in git repo --- states/zsh/files/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/states/zsh/files/zshrc b/states/zsh/files/zshrc index 6fe4aaf..365ca41 100644 --- a/states/zsh/files/zshrc +++ b/states/zsh/files/zshrc @@ -46,8 +46,10 @@ zstyle ':vcs_info:*' enable git # or use pre_cmd, see man zshcontrib precmd() { - echo vcs_info + if [[ -n ${vcs_info_msg_0_} ]]; then + echo + fi } prompt='$vcs_info_msg_0_' -- 2.46.2