From 4fa2c1d1447a246cee99ca49011fbe6904a399ce Mon Sep 17 00:00:00 2001 From: Leila Muhtasib Date: Tue, 12 Jun 2012 11:44:33 -0400 Subject: [PATCH] Added dots for fill instead of blank spaces --- bin/git-effort | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/git-effort b/bin/git-effort index 20e452f..e5775f3 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -70,7 +70,14 @@ effort() { # commits color_for $commits - printf " \033[${color}m%-45s %-10d" $file $commits + len=${#file} + dot="." + f_dot=$file + for ((i=0; i < 45-$len ;i++)); do + f_dot=$f_dot$dot + done + + printf " \033[${color}m%s %-10d" $f_dot $commits # active days active=`active_days $file`