From f48c31332f3e3f536645a427fa970038aaacbc1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Tue, 7 May 2024 15:45:33 +0200 Subject: [PATCH] Fix zsh prompt in git repos without remote --- zsh/zshrc.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/zshrc.j2 b/zsh/zshrc.j2 index 56efe3c..38e8463 100644 --- a/zsh/zshrc.j2 +++ b/zsh/zshrc.j2 @@ -387,6 +387,8 @@ tmp() { if [[ -n ${remote} ]] ; then hook_com[branch]="%F{cyan}${hook_com[branch]}%F{$mainc}:%b%F{magenta}${remote}%F{yellow}${(j:/:)gitstatus}%F{$mainc}" + else + hook_com[branch]="%F{cyan}${hook_com[branch]}%f" fi }