-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path00_new_computer
More file actions
executable file
·60 lines (44 loc) · 1.58 KB
/
Copy path00_new_computer
File metadata and controls
executable file
·60 lines (44 loc) · 1.58 KB
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
#!/bin/bash
cd ~
# Brew & dotfiles
# #####################################
# Install homebrew; https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
echo >> ~/.zshenv && \
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshenv &&
source ~/.zshenv
if [ ! -d "dots" ]; then
git clone git@github.com:notnotdrew/dots.git
else
echo "~/dots already exists, using as-is..."
fi
cd dots/ && \
./update_symlinks && \
source ~/.zshenv && \
brew bundle
sudo sh -c 'echo /opt/homebrew/bin/bash >> /etc/shells'
sudo sh -c 'echo /opt/homebrew/bin/zsh >> /etc/shells'
chsh -s /opt/homebrew/bin/zsh
source ~/.zshrc
# General config
# #####################################
# Show hidden files
defaults write com.apple.finder "AppleShowAllFiles" -bool "true" && killall Finder
# Don't show notifications for songs
defaults write com.apple.Music "userWantsPlaybackNotifications" -bool "false" && killall Music
# Automatically hide & show dock
defaults write com.apple.dock autohide -bool true
# Only show open apps in dock
defaults write com.apple.dock static-only -bool true
# Set tile size to minimum
defaults write com.apple.dock tilesize -int 16
# Restart dock
killall Dock
# Manual todos
# #####################################
cat <<EOF
TODO: The following should be updated manually in Preferences:
- Change wallpaper: Wallpaper > Add Photo > ~/dots/wallpaper.gif
- Use caps lock as control (for all keyboards): Keyboard > Keyboard Shortcuts > Modifier Keys
- Use tap as click: Trackpad > Tap to click
EOF