-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_once_install-packages.sh.tmpl
62 lines (56 loc) · 1.57 KB
/
run_once_install-packages.sh.tmpl
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
#!/usr/bin/env bash
sudo apt update && sudo apt install -y \
curl \
bash-completion \
make \
vim \
tree \
socat \
software-properties-common \
apt-file \
p7zip-full \
unzip \
lsof \
inotify-tools \
locales \
build-essential \
zlib1g-dev \
libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
;
# python3 dependencies
sudo apt install -y \
build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
libsqlite3-dev \
libbz2-dev \
liblzma-dev \
wget \
;
{{ if and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "ubuntu") -}}
sudo add-apt-repository -y ppa:git-core/ppa && sudo apt update &&
{{- end }}
sudo apt install -y \
git \
tig \
;
{{ if .is_wsl2 -}}
sudo add-apt-repository -y ppa:wslutilities/wslu &&
sudo apt update &&
sudo apt install -y --no-install-recommends wslu
{{- end }}
curl -o $HOME/.git-completion.sh -sL \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
curl -o $HOME/.git-prompt.sh -sL \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
# install homebrew if not exists
command -v brew &>/dev/null ||
test -f /home/linuxbrew/.linuxbrew/bin/brew ||
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || true