diff options
author | David Wührer <def@gmx.at> | 2023-05-13 17:15:33 +0200 |
---|---|---|
committer | David Wührer <def@gmx.at> | 2023-05-13 17:15:33 +0200 |
commit | 9bd7b1078f0d23bd452110451d1762f118e99fbf (patch) | |
tree | 91791ba13253d28039564cd555a37d0628fd4ea6 /giteval | |
parent | dc3b063ef6b370d1b3594ed785c682ea2db09b41 (diff) |
improvements
Diffstat (limited to 'giteval')
-rwxr-xr-x | giteval | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |