Add check for macOS and colorized title.

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

View File

@@ -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,6 +57,7 @@ else
fi
# Load Dconf (GNOME settings)
if [[ "$OSTYPE" != "darwin"* ]]; then
echo -e "${YELLOW}[+] Loading Dconf settings...${NC}"
dconf load / <$HOME/dotfiles/dconf-settings.ini
if [ $? -ne 0 ]; then
@@ -60,3 +65,4 @@ if [ $? -ne 0 ]; then
else
echo -e "${GREEN}[I] Dconf settings loaded successfully.${NC}"
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 '['