-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_once_01_install_linux_apps.sh.tmpl
68 lines (62 loc) · 1.78 KB
/
run_once_01_install_linux_apps.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
63
64
65
66
67
68
#!/bin/bash
{{ if (eq .chezmoi.os "linux") }}
{{- if (eq .chezmoi.osRelease.id "arch") }}
sudo pacman -S aria2 --noconfirm
sudo pacman -S base-devel --noconfirm
sudo pacman -S coreutils --noconfirm
sudo pacman -S eza --noconfirm
sudo pacman -S gnupg --noconfirm
sudo pacman -S kitty --noconfirm
sudo pacman -S tmux --noconfirm
sudo pacman -S topgrade --noconfirm
sudo pacman -S zsh --noconfirm
{{- else }}
# Add library for "eza"
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo tee /etc/apt/trusted.gpg.d/gierens.asc
echo "deb http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
sudo apt update
sudo apt install -y aria2 \
build-essential \
cargo \
coreutils \
curl \
eza \
file \
gnupg \
{{ if (ne .chezmoi.arch "arm") }}
kitty \
{{ else }}
guake \
{{ end }}
procps \
tmux \
zsh \
&& apt clean
sudo cargo install topgrade
{{- end }}
{{ if (ne .chezmoi.arch "arm") }}
# Install Brew
if ! command -v brew; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew analytics off
else
brew update --verbose
brew upgrade --verbose
brew cleanup -s
fi
{{ else }}
# Guake Config
guake --restore-preferences ~/.config/guake/guake.conf
{{- end }}
##### fonts #####
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip
unzip Hack.zip -d ~/.local/share/fonts/
rm Hack.zip
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/IBMPlexMono.zip
unzip IBMPlexMono.zip -d ~/.local/share/fonts/
rm IBMPlexMono.zip
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/SourceCodePro.zip
unzip SourceCodePro.zip -d ~/.local/share/fonts/
rm SourceCodePro.zip
fc-cache -fv
{{ end }}