bundlewrap/bundles/macbook/files/macbook-update

31 lines
607 B
Bash

#!/bin/bash -l
xcode-select --install
git -C ~/.zsh/oh-my-zsh pull
brew upgrade
brew upgrade --cask --greedy
sudo softwareupdate -ia --verbose
if test "$(defaults read com.apple.dock autohide-time-modifier)" -ne 0.16
then
defaults write com.apple.dock autohide-time-modifier -float 0.16
RESTART_DOCK=TRUE
fi
if test "$(defaults read com.apple.dock autohide-delay)" -ne 0
then
defaults write com.apple.dock autohide-delay -float 0
RESTART_DOCK=TRUE
fi
if test "$RESTART_DOCK" = TRUE
then
killall Dock
fi
sudo systemsetup -setremotelogin on # enable ssh
pip install --upgrade pip