-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
85 lines (74 loc) · 1.72 KB
/
install
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
#!/bin/sh
# Ask for the administrator password upfront
sudo -v
# Update existing `sudo` time stamp until `install` has finished
while true; do
sudo -n true
sleep 60
kill -0 "$$" || exit
done 2>/dev/null &
# Install Xcode command line tools
if ! command -v xcode-select -p >/dev/null; then
xcode-select --install
fi
# Install homebrew
if ! command -v brew >/dev/null; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" || true
fi
# Bundle applications
brew bundle --file=- <<EOF
tap 'homebrew/bundle'
brew 'asdf'
brew 'bat'
brew 'cmatrix'
brew 'coreutils'
brew 'curl'
brew 'direnv'
brew 'eza'
brew 'fd'
brew 'fish'
brew 'git'
brew 'htop'
brew 'httpie'
brew 'mas'
brew 'openssl'
brew 'sl'
brew 'ssh-copy-id'
brew 'starship'
brew 'stow'
brew 'tree'
brew 'wget'
cask 'alfred'
cask 'alt-tab'
cask 'font-fira-code'
cask 'docker'
cask 'google-chrome'
cask 'iina'
cask 'kitty'
cask 'qlcolorcode'
cask 'qlmarkdown'
cask 'qlstephen'
cask 'qlvideo'
cask 'quicklook-csv'
cask 'quicklook-json'
cask 'sensiblesidebuttons'
cask 'signal'
cask 'the-unarchiver'
cask 'transmission'
cask 'visual-studio-code'
cask 'webpquicklook'
mas 'Pixelmator', id: 407963104
mas 'Textual IRC Client', id: 896450579
mas 'ToothFairy', id: 1191449274
mas 'Transmit', id: 403388562
mas 'Xcode', id: 497799835
EOF
# Add fish to shells
if ! grep -F -q '/opt/homebrew/bin/fish' /etc/shells; then
echo '/opt/homebrew/bin/fish' | sudo tee -a /etc/shells
fi
# Set fish as the default shell
if [ ! "${SHELL}" = '/opt/homebrew/bin/fish' ]; then
chsh -s /opt/homebrew/bin/fish
fi
echo 'Install complete! Please restart your terminal.'