From f25db7daf47bba35c7db3559121198d7abce9d67 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 24 Jul 2023 14:21:35 +0200 Subject: [PATCH] fix ntracked test --- gitcrux.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitcrux.theme b/gitcrux.theme index cd281b7..881171c 100644 --- a/gitcrux.theme +++ b/gitcrux.theme @@ -299,7 +299,7 @@ _gitcrux_VCS() { fi fi else # No commit behind. - if [[ "$gitcrux_has_lines" || "$lp_vcs_untracked_files" ]]; then + if [[ "$gitcrux_has_lines" || "$lp_vcs_untracked_files" -gt "0" ]]; then explanation+=" having $add_count local modification or untracked files" _gitcrux_arrow "$_GITCRUX_HEADER_LINE" ${GITCRUX_ARROW_LEFT[@]} "$color_add" 3 4 "add" GITCRUX_VCS+="${gitcrux_arrow}${n}"