-
Notifications
You must be signed in to change notification settings - Fork 0
/
restore_mac.sh
executable file
·110 lines (98 loc) · 2.25 KB
/
restore_mac.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
110
#!/bin/sh
set -e
set -x
# Homebrew
/opt/homebrew/bin/brew --version || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/opt/homebrew/bin/brew install \
antidote \
autojump \
awscli \
buildkit \
docker \
glab \
gnu-sed \
helm \
helmfile \
htop \
istioctl \
jq \
krew \
kubernetes-cli \
lsd \
mas \
mosh \
mtr \
node \
pwgen \
pyenv \
thefuck \
tmux \
uv \
vim \
wireshark \
yq \
zsh
/opt/homebrew/bin/brew install --adopt \
android-platform-tools \
bitwarden \
clipy \
console \
cyberduck \
firefox@developer-edition \
font-hack-nerd-font \
gimp \
github \
google-chrome \
google-cloud-sdk \
grandperspective \
iterm2 \
itsycal \
kubecontext \
kubernetic \
launchcontrol \
lens \
logitech-options \
lulu \
nextcloud \
notion-calendar \
quicksilver \
rectangle \
sensiblesidebuttons \
signal \
shellcheck \
slack \
stats \
teamviewer \
textmate \
the-unarchiver \
uninstallpkg \
visual-studio-code \
vlc \
xquartz
#mas install 497799835 # Xcode
[ -n "$(xcode-select -p)" ] || xcode-select --install
PREFERENCE_SOURCE=~/dotfiles/mac/com.googlecode.iterm2.plist
PREFERENCE_DESTINATION=~/Library/Preferences/com.googlecode.iterm2.plist
if [ ! -f "$PREFERENCE_DESTINATION" ]; then
ln -s "$PREFERENCE_SOURCE" "$PREFERENCE_DESTINATION"
fi
PREFERENCE_SOURCE=~/dotfiles/mac/com.blacktree.Quicksilver.plist
PREFERENCE_DESTINATION=~/Library/Preferences/com.blacktree.Quicksilver.plist
if [ ! -f "$PREFERENCE_DESTINATION" ]; then
ln -s "$PREFERENCE_SOURCE" "$PREFERENCE_DESTINATION"
fi
PREFERENCE_SOURCE=~/dotfiles/mac/com.knollsoft.Rectangle.plist
PREFERENCE_DESTINATION=~/Library/Preferences/com.knollsoft.Rectangle.plist
if [ ! -f "$PREFERENCE_DESTINATION" ]; then
ln -s "$PREFERENCE_SOURCE" "$PREFERENCE_DESTINATION"
fi
PREFERENCE_SOURCE=~/dotfiles/mac/p10k.zsh
PREFERENCE_DESTINATION=~/.p10k.zsh
if [ ! -f "$PREFERENCE_DESTINATION" ]; then
ln -s "$PREFERENCE_SOURCE" "$PREFERENCE_DESTINATION"
fi
./restore.sh
ZSH_SHELL="/opt/homebrew/bin/zsh"
[ -n "$(grep $ZSH_SHELL /etc/shells)" ] || echo "\n/opt/homebrew/bin/zsh" | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/zsh
ssh-add --apple-use-keychain ~/.ssh/id_ed25519