-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminimal.yaml
57 lines (50 loc) · 1.43 KB
/
minimal.yaml
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
- defaults:
link:
relink: true
- clean: ["~"]
- link:
~/.bashrc.local: bash/bashrc.local
~/.rc.local: bash/rc.local
~/.dircolors:
~/.gitconfig:
~/.tmux.conf:
~/.zshrc: zsh/zshrc
~/.config/nvim: nvim
~/bin: bin
- shell:
- command: |
if command -v pacman >/dev/null 2>&1; then
# Arch Linux setup
sudo pacman -Syu --noconfirm
sudo pacman -S --needed --noconfirm $(grep -v '^#\|^$' packages_arch_minimal.txt)
else
# Ubuntu/Debian setup
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt update
grep -v '^#\|^$' packages_minimal.txt | xargs sudo apt install -y
fi
stderr: true
stdout: true
- shell:
- command: |
if command -v update-alternatives >/dev/null 2>&1; then
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
fi
stderr: true
stdout: true
- shell:
- mkdir -p ~/.tmux/plugins
- link:
~/.tmux/plugins/tpm: tpm
- shell:
- command: |
# Try installing starship through cargo first
if ! command -v starship >/dev/null 2>&1; then
curl -sS https://starship.rs/install.sh | sh
fi
mkdir -p ~/.config/starship
stderr: true
stdout: true
- link:
~/.config/starship.toml: starship/starship.toml