From 6b7f7b329c4044115c0519a5b898e614786adf13 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 23 Apr 2018 17:51:42 -0500 Subject: 2018-04-23 17:51 --- dotfiles/bashrc.sync | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/bashrc.sync b/dotfiles/bashrc.sync index 44b799c..5b02931 100644 --- a/dotfiles/bashrc.sync +++ b/dotfiles/bashrc.sync @@ -17,7 +17,7 @@ function countdown(){ } function git-commit-with-timestamp(){ - pwd + print-cyan $(pwd) git remote update git pull if ! git diff --quiet @@ -36,13 +36,18 @@ function git-sync-all(){ cd ~/dotfiles; git-commit-with-timestamp; } -function print-yellow { - YELLOW='\033[0;33m' +function print-cyan { + CYAN='\033[0;36m' NC='\033[0m' # No Color - printf "${YELLOW}$*${NC}\n" + printf "${CYAN}$*${NC}\n" } function print-line { - print-yellow "%`tput cols`s"|tr ' ' '#' + print-cyan "%`tput cols`s"|tr ' ' '#' } +function print-yellow { + YELLOW='\033[0;33m' + NC='\033[0m' # No Color + printf "${YELLOW}$*${NC}\n" +} -- cgit v1.2.3