-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpersonal-macos-config.sh
109 lines (84 loc) · 3.07 KB
/
personal-macos-config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env bash
# Setup script for setting up a new macos machine
echo "Starting PERSONAL setup"
# install xcode CLI
xcode-select --install
# Check for Homebrew to be present, install if it's missing
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
#
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/zeo-pleo/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Update homebrew recipes
brew update
PACKAGES=(
git
htop
speedtest-cli
tree
task
)
echo "Installing packages..."
brew install ${PACKAGES[@]}
echo "Cleaning up..."
brew cleanup
echo "Installing cask..."
CASKS=(
atom
iterm2
spotify
visual-studio-code
rectangle
caffeine
todoist
firefox
arc
alfred
discord
forklift
nvidia-geforce-now
bartender
espanso
)
echo "Installing cask apps..."
brew install --cask ${CASKS[@]}
###############################################################################
# General tuning #
###############################################################################
echo "Configuring OS..."
# Show the ~/Library folder
chflags nohidden ~/Library
# Store screenshots in Documents/Screenshots instead
mkdir ~/Documents/Screenshots
defaults write com.apple.screencapture location ~/Documents/Screenshots
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"
# Make the Dock appear in an instant, no delay
defaults write com.apple.dock autohide-delay -float 0; defaults delete com.apple.dock autohide-time-modifier; killall Dock
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Show filename extensions by default
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Enable tap-to-click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
###############################################################################
# TODO #
###############################################################################
# accessibility -> enable dragging without drag lock
# dock & menu bar -> hide dock by default
# keyboard -> enable to move focus between controls
# trackpad -> swipe between pages -> swipe with 3 fingers
# trackpad -> set up right-click to bottom right
# displays -> Scaled for more space
# A quick restart so everything goes to plan.
killall Finder
killall Dock
# We are done now.
echo "Macbook setup completed!"
# Thanks to:
# https://medium.com/macoclock/automating-your-macos-setup-with-homebrew-and-cask-e2a103b51af1
# https://github.com/kevinpapst/mac-os-setup/blob/master/settings/macos.sh
# https://github.com/andersfischernielsen for the inspiration :fish: