From 2e23bdf0af6922c8e40fb94cb4d8a42651664300 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Wed, 5 Feb 2025 16:29:06 +0000 Subject: [PATCH] Add check for macOS and colorized title. --- install.sh | 22 ++++++++++++++-------- tempCodeRunnerFile.sh | 1 - 2 files changed, 14 insertions(+), 9 deletions(-) delete mode 100644 tempCodeRunnerFile.sh diff --git a/install.sh b/install.sh index 2cb187cf..f73a394f 100755 --- a/install.sh +++ b/install.sh @@ -5,12 +5,16 @@ RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[0;33m' BLUE='\033[0;34m' +PURPLE='\033[0;35m' +CYAN='\033[0;36m' NC='\033[0m' # No Color -echo +echo -e "${CYAN}" echo "####################" -echo "# Trude's Dotfiles #" +echo -n "#" +echo -e "${PURPLE} Trude's Dotfiles${CYAN} #" echo "####################" +echo -e "${CYAN}Running on: ${PURPLE}$OSTYPE${NC}" echo echo -e "${YELLOW}[+] Updating distro...${NC}" @@ -53,10 +57,12 @@ else fi # Load Dconf (GNOME settings) -echo -e "${YELLOW}[+] Loading Dconf settings...${NC}" -dconf load / <$HOME/dotfiles/dconf-settings.ini -if [ $? -ne 0 ]; then - echo -e "${RED}[E] Error loading Dconf settings.${NC}" -else - echo -e "${GREEN}[I] Dconf settings loaded successfully.${NC}" +if [[ "$OSTYPE" != "darwin"* ]]; then + echo -e "${YELLOW}[+] Loading Dconf settings...${NC}" + dconf load / <$HOME/dotfiles/dconf-settings.ini + if [ $? -ne 0 ]; then + echo -e "${RED}[E] Error loading Dconf settings.${NC}" + else + echo -e "${GREEN}[I] Dconf settings loaded successfully.${NC}" + fi fi diff --git a/tempCodeRunnerFile.sh b/tempCodeRunnerFile.sh deleted file mode 100644 index 07772190..00000000 --- a/tempCodeRunnerFile.sh +++ /dev/null @@ -1 +0,0 @@ -Filter out any property that has a space above it as is not a header. headers start with '[' \ No newline at end of file