Add check for macOS and colorized title.
This commit is contained in:
18
install.sh
18
install.sh
@@ -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
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "${RED}[E] Error loading Dconf settings.${NC}"
|
echo -e "${RED}[E] Error loading Dconf settings.${NC}"
|
||||||
else
|
else
|
||||||
echo -e "${GREEN}[I] Dconf settings loaded successfully.${NC}"
|
echo -e "${GREEN}[I] Dconf settings loaded successfully.${NC}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
Filter out any property that has a space above it as is not a header. headers start with '['
|
|
||||||
Reference in New Issue
Block a user