Beginning of macOS and Linux dotfiles separation and quality improvements
This commit is contained in:
26
MacOS/macos.sh
Executable file
26
MacOS/macos.sh
Executable 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."
|
||||
Reference in New Issue
Block a user