Beginning of macOS and Linux dotfiles separation and quality improvements

This commit is contained in:
2024-01-30 17:04:26 +00:00
parent a4b1677cb2
commit 6f8394aabe
20 changed files with 107 additions and 49 deletions

26
MacOS/macos.sh Executable file
View File

@@ -0,0 +1,26 @@
#! /bin/zsh
source ./scripts/color.sh
# Copy configs
echo -e "${GREEN}[+] Configuring system...${ENDCOLOR}"
cp -rf ./homeConfigs/.* ~
# Disable dock delay
echo -e "${GREEN}[+] Disabling dock autohide delay...${ENDCOLOR}"
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide -int 1
#defaults write com.apple.dock autohide-time-modifier -int 0 #Disable animation
killall Dock
# Hide dotfiles folder
echo -e "${GREEN}[+] Hiding dotfiles folder from finder...${ENDCOLOR}"
chflags hidden ~/dotfiles
# Unhide: chflags nohidden /path/to/unhide/
# Update MacOS
echo -e "${GREEN}[+] Updating MacOS...${ENDCOLOR}"
sudo softwareupdate -ia
echo -e "${GREEN}${BOLD}[i] All done.${ENDCOLOR}"
say "All done."