#!/bin/bash echo "Setting up template environment" # TODO list # * colors # * dbb avatar ## These are the colors used throughout the script. red='\e[1;31m%s\e[0m\n' COL_GREEN='\e[1;32m%s\e[0m\n' yellow='\e[1;33m%s\e[0m\n' blue='\e[1;34m%s\e[0m\n' magenta='\e[1;35m%s\e[0m\n' cyan='\e[1;36m%s\e[0m\n' orange='\e[38;5;166m%s\e[0m\n' lightblue='\e[38;5;111m%s\e[0m\n' ## Script Location SCRIPTDIR=$(dirname $0) git -C $SCRIPTDIR pull echo "" for scriptfile in "$SCRIPTDIR"/[0-9]*.sh do TOPLEVELSUBDIRSCRIPTTEXT=$(echo "`basename $scriptfile | cut -f 1 -d '.' | sed 's/[0-9\-]/ /g'`") printf "${COL_GREEN}" "$TOPLEVELSUBDIRSCRIPTTEXT" /bin/bash $scriptfile echo "" done echo "template_setup completed"