Add check for macOS and colorized title.

This commit is contained in:
2025-02-05 16:29:06 +00:00
parent 45d75ed31c
commit 2e23bdf0af
2 changed files with 14 additions and 9 deletions

View File

@@ -5,12 +5,16 @@ RED='\033[0;31m'
GREEN='\033[0;32m' GREEN='\033[0;32m'
YELLOW='\033[0;33m' YELLOW='\033[0;33m'
BLUE='\033[0;34m' BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color NC='\033[0m' # No Color
echo echo -e "${CYAN}"
echo "####################" echo "####################"
echo "# Trude's Dotfiles #" echo -n "#"
echo -e "${PURPLE} Trude's Dotfiles${CYAN} #"
echo "####################" echo "####################"
echo -e "${CYAN}Running on: ${PURPLE}$OSTYPE${NC}"
echo echo
echo -e "${YELLOW}[+] Updating distro...${NC}" echo -e "${YELLOW}[+] Updating distro...${NC}"
@@ -53,10 +57,12 @@ else
fi fi
# Load Dconf (GNOME settings) # Load Dconf (GNOME settings)
echo -e "${YELLOW}[+] Loading Dconf settings...${NC}" if [[ "$OSTYPE" != "darwin"* ]]; then
dconf load / <$HOME/dotfiles/dconf-settings.ini echo -e "${YELLOW}[+] Loading Dconf settings...${NC}"
if [ $? -ne 0 ]; then dconf load / <$HOME/dotfiles/dconf-settings.ini
echo -e "${RED}[E] Error loading Dconf settings.${NC}" if [ $? -ne 0 ]; then
else echo -e "${RED}[E] Error loading Dconf settings.${NC}"
echo -e "${GREEN}[I] Dconf settings loaded successfully.${NC}" else
echo -e "${GREEN}[I] Dconf settings loaded successfully.${NC}"
fi
fi fi

View File

@@ -1 +0,0 @@
Filter out any property that has a space above it as is not a header. headers start with '['