Dotfiles v2.0

This commit is contained in:
2024-03-21 16:02:35 +00:00
parent 0cfe94f5df
commit ab609a0d9d
121 changed files with 218 additions and 570 deletions

32
install.sh Executable file
View File

@@ -0,0 +1,32 @@
#! /bin/zsh
source ./scripts/color.sh
source ./scripts/symlink-files.sh
source ./home/.zshrc
# Link configs
echo -e "${GREEN}[+] Symlinking dotfiles...${ENDCOLOR}"
symlink_files "./home" $HOME
echo -n "Run MacOS config script? This will overwrite the system dock. (y/n): "
read runConfig
if [[ $runConfig == 'y' ]]; then
echo -e "${GREEN}[+] Configuring MacOS...${ENDCOLOR}"
bash ./darwinSettings.sh
fi
# Restore Brew Installs
echo -e "${GREEN}[+] Restoring Brew from BrewFile...${ENDCOLOR}"
p b BrewFile
# Install Oh-My-ZSH
echo -e "${GREEN}[+] Installing Oh-My-ZSH...${ENDCOLOR}"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# Update MacOS
echo -e "${GREEN}[+] Updating MacOS...${ENDCOLOR}"
echo -e "${GREEN}[I] THE DEVICE WILL RESTART IF NECESSARY.${ENDCOLOR}"
sudo softwareupdate -iaR
echo -e "${GREEN}${BOLD}[i] All done.${ENDCOLOR}"