diff options
Diffstat (limited to 'giteval')
-rwxr-xr-x | giteval | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#!/bin/bash + +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" + ;; 'no changes added to commit'*) + printf "\e[33m[$b]\e[0m" + ;; 'nothing added to commit'*) + printf "\e[36m[$b]\e[0m" + ;; *) + printf "\e[31m[$b]\e[0m" + esac +} +echo |