From 818f48d92f4239712fdcbdc3d879883483edeba6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 13 Nov 2024 13:10:19 +0100 Subject: [PATCH] -n --- bash/bash/prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bash/prompt.sh b/bash/bash/prompt.sh index d77a307..73ef1ff 100644 --- a/bash/bash/prompt.sh +++ b/bash/bash/prompt.sh @@ -14,7 +14,7 @@ ps1() { view="${view}${code}\e[0m @ \e[0;33m${date}\e[0m" if [ "$(type -t __git_ps1)" == "function" ]; then git="$(__git_ps1)" - if [ "${git}" ]; then + if [ -n "${git}" ]; then view="${view} –\e[0;35m${git}\e[0m" fi fi