-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·64 lines (56 loc) · 954 Bytes
/
install.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
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
export PATH="${HOME}/opt/bin:${PATH}"
export PATH="${HOME}/homebrew/sbin:${HOME}/homebrew/bin:${PATH}"
prerequisites() {
if ! command -v brew >/dev/null 2>&1; then
if [[ ! -d "${HOME}/homebrew" ]]; then
mkdir "${HOME}/homebrew"
fi
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C "${HOME}/homebrew"
fi
brew update
brew upgrade
# Installed packages must be also declared in uninstall.sh
brew install \
bat \
curl \
deno \
fd \
fish \
fswatch \
fzf \
git \
gh \
glow \
htop \
httpie \
jq \
n \
ncdu \
openssl \
p7zip \
pass \
pass-otp \
pgcli \
php \
python \
php \
ripgrep \
timg \
tmux \
tree \
twitchdev/twitch/twitch-cli \
watch \
yarn
}
main() {
mkdir -p "${HOME}/opt/bin"
if ! prerequisites; then
echo "Error while installing prerequisites"
fi
./install.fish
}
main