-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall-binaries.conf.yaml
237 lines (207 loc) · 6.03 KB
/
install-binaries.conf.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
- defaults:
link:
create: true
relink: true
- shell:
-
command: >-
if [ ! -e ~/.tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm;
fi;
description: Install tpm
stdout: true
stderr: true
quiet: true
- clean:
- ~/.local/bin
- ~/.local/share/man/man1
- ~/.local/share/fish/vendor_completions.d
- create:
- ~/.local/bin
- ~/.local/share/packages
- ~/.local/share/packages/.backup
- shell:
-
command: >-
if ! command -v ubi; then
curl --silent --location "https://raw.githubusercontent.com/houseabsolute/ubi/master/bootstrap/bootstrap-ubi.sh" | TARGET="$HOME"/.local/bin sh;
else
ubi --self-upgrade
fi;
description: Install ubi
stdout: true
stderr: true
quiet: true
-
command: >-
set -euo pipefail;
PKG_DIR="$HOME"/.local/share/packages;
pkgs=(
"neovim neovim"
"helix-editor helix"
"BurntSushi ripgrep"
"sharkdp fd"
"sharkdp bat"
"cli cli"
"dandavison delta"
"Wilfred difftastic"
"jesseduffield lazygit"
"starship starship"
"ajeetdsouza zoxide"
"junegunn fzf"
"ellie atuin"
"jdx mise"
"astral-sh uv"
"chmln sd"
"eza-community eza"
"zyedidia eget"
"Byron dua-cli"
"casey just"
"sxyazi yazi"
"ast-grep ast-grep"
);
for tuple in "${pkgs[@]}"; do
set -- $tuple; user=$1; repo=$2;
pkg_install_dir="${PKG_DIR}/${repo}";
if [ -e $pkg_install_dir ]; then
pkg_backup_dir="${PKG_DIR}/.backup/${repo}";
rm -rf $pkg_backup_dir;
mv $pkg_install_dir $pkg_backup_dir;
fi;
"$HOME"/.local/bin/ubi --verbose --project "${user}/${repo}" --extract-all --in $pkg_install_dir;
done;
description: Install ubi packages
stdout: true
stderr: true
quiet: true
- link:
~/.local/bin/nvim:
path: ~/.local/share/packages/neovim/bin/nvim
~/.local/share/man/man1/nvim.1:
path: ~/.local/share/packages/neovim/share/man/man1/nvim.1
- link:
~/.local/bin/hx:
path: ~/.local/share/packages/helix/hx
- link:
~/.local/bin/rg:
path: ~/.local/share/packages/ripgrep/rg
~/.local/share/man/man1/rg.1:
path: ~/.local/share/packages/ripgrep/doc/rg.1
- link:
~/.local/bin/fd:
path: ~/.local/share/packages/fd/fd
~/.local/share/man/man1/fd.1:
path: ~/.local/share/packages/fd/fd.1
- link:
~/.local/bin/bat:
path: ~/.local/share/packages/bat/bat
~/.local/share/man/man1/bat.1:
path: ~/.local/share/packages/bat/bat.1
- link:
~/.local/bin/gh:
path: ~/.local/share/packages/cli/bin/gh
# ~/.local/share/man/man1:
# glob: true
# path: ~/.local/share/packages/cli/share/man/man1/*.1
- link:
~/.local/bin/delta:
path: ~/.local/share/packages/delta/delta
- link:
~/.local/bin/difft:
path: ~/.local/share/packages/difftastic/difft
- link:
~/.local/bin/lazygit:
path: ~/.local/share/packages/lazygit/lazygit
- link:
~/.local/bin/starship:
path: ~/.local/share/packages/starship/starship
- link:
~/.local/bin/zoxide:
path: ~/.local/share/packages/zoxide/zoxide
- link:
~/.local/bin/fzf:
path: ~/.local/share/packages/fzf/fzf
- link:
~/.local/bin/atuin:
path: ~/.local/share/packages/atuin/atuin
- shell:
-
command: >-
"$HOME"/.local/bin/atuin gen-completions --shell fish > ~/.local/share/fish/vendor_completions.d/atuin.fish
description: atuin completions
- link:
~/.local/bin/mise:
path: ~/.local/share/packages/mise/bin/mise
~/.local/share/man/man1/mise.1:
path: ~/.local/share/packages/mise/man/man1/mise.1
- shell:
-
command: >-
"$HOME"/.local/bin/mise use -g usage@latest;
"$HOME"/.local/bin/mise completion fish > ~/.local/share/fish/vendor_completions.d/mise.fish;
description: mise completions
- link:
~/.local/bin/uv:
path: ~/.local/share/packages/uv/uv
~/.local/bin/uvx:
path: ~/.local/share/packages/uv/uvx
- shell:
-
command: >-
"$HOME"/.local/bin/uv generate-shell-completion fish > ~/.local/share/fish/vendor_completions.d/uv.fish
description: uv completions
- link:
~/.local/bin/eza:
path: ~/.local/share/packages/eza/eza
- link:
~/.local/bin/sd:
path: ~/.local/share/packages/sd/sd
~/.local/share/fish/vendor_completions.d/sd.fish:
path: ~/.local/share/packages/sd/completions/sd.fish
~/.local/share/man/man1/sd.1:
path: ~/.local/share/packages/sd/sd.1
- link:
~/.local/bin/eget:
path: ~/.local/share/packages/eget/eget
~/.local/share/man/man1/eget.1:
path: ~/.local/share/packages/eget/eget.1
- link:
~/.local/bin/yazi:
path: ~/.local/share/packages/yazi/yazi
~/.local/share/fish/vendor_completions.d/yazi.fish:
path: ~/.local/share/packages/yazi/completions/yazi.fish
- link:
~/.local/bin/sg:
path: ~/.local/share/packages/ast-grep/sg
~/.local/bin/ast-grep:
path: ~/.local/share/packages/ast-grep/ast-grep
- shell:
-
command: >-
"$HOME"/.local/bin/sg completions fish > ~/.local/share/fish/vendor_completions.d/sg.fish
description: ast-grep completions
- link:
~/.local/bin/dua:
path: ~/.local/share/packages/dua-cli/dua
- link:
~/.local/bin/just:
path: ~/.local/share/packages/just/just
~/.local/share/fish/vendor_completions.d/just.fish:
path: ~/.local/share/packages/just/completions/just.fish
~/.local/share/man/man1/just.1:
path: ~/.local/share/packages/just/just.1
- shell:
-
command: >-
set -euo pipefail;
pkgs=(
"mliszcz fish-shell fish"
);
for tuple in "${pkgs[@]}"; do
set -- $tuple; user=$1; repo=$2; bin_name=$3; eget_args=${4:-};
"$HOME"/.local/bin/eget $user/$repo --to ~/.local/bin/$bin_name $eget_args;
done;
description: Install eget packages
stdout: true
stderr: true
quiet: true