diff --git a/start_monorip.sh b/start_monorip.sh new file mode 100755 index 0000000..cb1e74b --- /dev/null +++ b/start_monorip.sh @@ -0,0 +1,27 @@ +#!/bin/bash +set -euo pipefail + +########################## +# Color helpers (no tput) +########################## +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[0;33m' +CYAN='\033[0;36m' +PURPLE='\033[0;35m' +BLUE='\033[0;34m' +GRAY='\033[0;37m' +BOLD='\033[1m' +RESET='\033[0m' + +# Disable colors if output is not a terminal +if [ ! -t 1 ]; then + RED='' GREEN='' YELLOW='' CYAN='' PURPLE='' BLUE='' GRAY='' BOLD='' RESET='' +fi + +color_yellow() { printf '%b' "$YELLOW"; } +color_cyan() { printf '%b' "$CYAN"; } +color_red() { printf '%b' "$RED"; } +color_green() { printf '%b' "$GREEN"; } +color_reset() { printf '%b' "$RESET"; } +