Fix zsh prompt in git repos without remote

This commit is contained in:
2024-05-07 15:45:33 +02:00
parent 881dd008ad
commit f48c31332f

View File

@@ -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
}