From 48ff98764d6cac124c3eb3793a2e6f41b97e82a8 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 29 Dec 2019 22:26:08 +0530 Subject: [PATCH] [Feature] Allow WISH_VCS_DEFAULT to be empty --- plugins/vcs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/vcs.sh b/plugins/vcs.sh index 8eae598..4ca9820 100644 --- a/plugins/vcs.sh +++ b/plugins/vcs.sh @@ -10,7 +10,7 @@ function wish_vcs_set_colors() { WISH_VCS_FG=${WISH_VCS_FG:-$WISH_DEFAULT_FG} WISH_VCS_BG=${WISH_VCS_BG:-$WISH_DEFAULT_BG} WISH_VCS_GIT_SYMBOL=${WISH_VCS_GIT:-} - WISH_VCS_DEFAULT=${WISH_VCS_DEFAULT:-$} + [[ -v WISH_VCS_DEFAULT ]] || WISH_VCS_DEFAULT="$" WISH_VCS_GIT_UNTRACKED_SYMBOL=${WISH_VCS_GIT_UNTRACKED_SYMBOL:-●} } @@ -32,7 +32,7 @@ function wish_vcs_main() { fi wish_append $WISH_VCS_BG $WISH_VCS_FG "$git" else - wish_append $WISH_VCS_BG $WISH_VCS_FG " $WISH_VCS_DEFAULT " + wish_append $WISH_VCS_BG $WISH_VCS_FG "$WISH_VCS_DEFAULT" fi }