From: Maximilian Friedersdorff Date: Tue, 16 Jul 2019 13:27:33 +0000 (+0100) Subject: Add newline between prompts if in git repo X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;ds=sidebyside;h=7b6a6eb17aa05797814d09f98daa3eb572ef33e7;p=max%2Fsaltfiles.git Add newline between prompts if in git repo --- 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_'