-
Notifications
You must be signed in to change notification settings - Fork 0
/
restore_mac.sh
executable file
·59 lines (49 loc) · 1.38 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
#!/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 youtube-dl autojump pyenv zsh tmux kubernetes-cli kubernetes-helm gnu-sed vim htop antidote thefuck mas nodejs yarn mosh lsd krew
/opt/homebrew/bin/brew install --adopt \
android-platform-tools \
clipy \
console \
cyberduck \
docker \
firefox@developer-edition \
gimp \
github \
google-chrome \
google-cloud-sdk \
grandperspective \
logitech-options \
iterm2 \
kubernetic \
kubecontext \
launchcontrol \
nextcloud \
quicksilver \
rectangle \
sensiblesidebuttons \
shellcheck \
stats \
textmate \
the-unarchiver \
visual-studio-code \
vlc \
uninstallpkg \
wireshark \
xquartz \
font-hack-nerd-font
#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
# ./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