From 890c991f18e94979ad34a181e2be2614c8f21957 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 28 Mar 2026 12:22:41 -0700 Subject: [PATCH] Use log rather than echo. Add quotes on color assignments. --- rc_shared.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/rc_shared.sh b/rc_shared.sh index 4065408..b1e8b5c 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -7,18 +7,18 @@ export PATH="$PATH:~/bin-shared:~/.bin-shared" # PS1 Colors -export PURPLE=`tput setaf 55` -export ORANGE=`tput setaf 208` -export GREEN=`tput setaf 34` +export PURPLE="`tput setaf 55`" +export ORANGE="`tput setaf 208"` +export GREEN="`tput setaf 34`" -export RED=`tput setaf 196` -export SCARLET=`tput setaf 160` -export YELLOW=`tput setaf 226` +export RED="`tput setaf 196`" +export SCARLET="`tput setaf 16"0` +export YELLOW="`tput setaf 226"` -export GRAY=`tput setaf 243` +export GRAY="`tput setaf 243`" -export RESET=`tput sgr0` -export BOLD=`tput bold` +export RESET="`tput sgr0`" +export BOLD="`tput bold`" ## Aliases ## @@ -29,7 +29,7 @@ export BOLD=`tput bold` # Related specifically to this project. function update-shared { - echo "Reloading the '~/.rc_shared' file from env-shared." + log "Reloading the '~/.rc_shared' file from env-shared.\n" branch="$1" if [[ -z "$branch" ]]; then branch="dev" @@ -44,7 +44,7 @@ function update-shared { mv -v $dir ~/TRASH/"$dir-`date "+%Y%m%d-%H%M%S"`" - echo "Complete! Please note this does NOT update bin files." + blog "Complete! Please note this does NOT update bin files." } alias shared-update="update-shared" alias reload-shared="update-shared"