From a5f6ef143ac1ba4693016299b884be88e8c32019 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 23 Apr 2018 17:53:07 -0500 Subject: 2018-04-23 17:53 --- dotfiles/bashrc.sync | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dotfiles/bashrc.sync b/dotfiles/bashrc.sync index 5b02931..295a2e0 100644 --- a/dotfiles/bashrc.sync +++ b/dotfiles/bashrc.sync @@ -17,7 +17,7 @@ function countdown(){ } function git-commit-with-timestamp(){ - print-cyan $(pwd) + print-green $(pwd) git remote update git pull if ! git diff --quiet @@ -42,8 +42,15 @@ function print-cyan { printf "${CYAN}$*${NC}\n" } + +function print-green { + GREEN='\033[0;32m' + NC='\033[0m' # No Color + printf "${GREEN}$*${NC}\n" +} + function print-line { - print-cyan "%`tput cols`s"|tr ' ' '#' + print-green "%`tput cols`s"|tr ' ' '#' } function print-yellow { -- cgit v1.2.3