From 9bd7b1078f0d23bd452110451d1762f118e99fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20W=C3=BChrer?= Date: Sat, 13 May 2023 17:15:33 +0200 Subject: improvements --- giteval | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'giteval') diff --git a/giteval b/giteval index c4e8d08..48d35a8 100755 --- a/giteval +++ b/giteval @@ -3,13 +3,13 @@ b=$(git branch --show-current 2> /dev/null) && { case $(env - git status --no-ahead-behind | tail -n1) in 'nothing to commit'*) - printf "\e[32m[$b]\e[0m" + printf '\[\e[32m\][%s]\[\e[0m\]' "$b" ;; 'no changes added to commit'*) - printf "\e[33m[$b]\e[0m" + printf '\[\e[33m\][%s]\[\e[0m\]' "$b" ;; 'nothing added to commit'*) - printf "\e[36m[$b]\e[0m" + printf '\[\e[36m\][%s]\[\e[0m\]' "$b" ;; *) - printf "\e[31m[$b]\e[0m" + printf '\[\e[31m\][%s]\[\e[0m\]' "$b" esac } echo -- cgit v1.2.3