-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate-modern-cli
384 lines (267 loc) · 7.87 KB
/
update-modern-cli
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
#!/bin/bash
# Find commands that don't yet exist in this file
function list_new_cli() {
comm -13 \
<(cat ~/.dotfiles/work/update-modern-cli | rg -o "([^,\s]+)" -r '$1' | sort -u) \
<(fd . --base-directory /spare/local/szafar/apps/bin -tx | sort -u) |
less
exit
}
# list_new_cli
# $HOME provides colo wide sync for free
EGET_BIN="${EGET_BIN:-$HOME/bin}"
MODERN_BIN="${MODERN_BIN:-$EGET_BIN}"
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
NC=`tput sgr0`
echo "${YELLOW}Downloading binaries to: ${MODERN_BIN}${NC}"
mkdir -p "$MODERN_BIN" &> /dev/null
pushd "$MODERN_BIN" &> /dev/null
# First get eget itself, only if it doesn't exist
# then use it to get other binaries
# eget - https://github.com/zyedidia/eget/
# TODO: Look into another alternative: https://github.com/xermicus/blindspot
command -v eget &> /dev/null || (
echo "${RED}First downloading eget${NC}" &&
curl -sSL https://zyedidia.github.io/eget.sh | sh
)
function eget() {
echo ""
echo "${GREEN}${1}${NC}"
command eget --upgrade-only "$@"
}
# agrind - slice and dice logs
eget https://github.com/rcoh/angle-grinder -a musl --to agrind
# aria2c - fast file downloader
# main repo: https://github.com/aria2/aria2/
eget https://github.com/q3aql/aria2-static-builds -a linux -a 64 -a bz2 -f aria2c --to aria2c
# as-tree
eget https://github.com/jez/as-tree
# atuin
# NOTE: Not compiled with musl but glibc, will fail on boxes with older glibc
eget https://github.com/ellie/atuin
# bat
eget https://github.com/sharkdp/bat -a x86_64 -a musl.tar
# bat-extras - batdiff, batgrep, batman, bat-modules, batpipe, batwatch, prettybat
eget https://github.com/eth-p/bat-extras --all --to batman
# bfs - https://github.com/tavianator/bfs
# breadth first version of find command
# TODO: needs to be compiled, written in C
# broot -
eget https://github.com/Canop/broot -f x86_64-unknown-linux-musl/broot
# btop - yet another top alternative
# TODO: Choose the best amongst all the available top alternatives
eget https://github.com/aristocratos/btop -f bin/btop
# chezmoi - manage dotfiles across multiple machines
eget https://github.com/twpayne/chezmoi -a chezmoi-linux-amd64-musl
# choose - cut alternative?
eget https://github.com/theryangeary/choose -a musl
# cht.sh
# curl -s https://raw.githubusercontent.com/chubin/cheat.sh/master/share/cht.sh.txt > cht.sh
# csview
eget https://github.com/wfxr/csview -a musl -a x86_64
# csvtk
eget https://github.com/shenwei356/csvtk
# curlie
eget https://github.com/rs/curlie -a tar
# czkawka
# TODO: Compare with fclones
eget https://github.com/qarmin/czkawka -a linux -a cli
# dasel
eget https://github.com/TomWright/dasel -a dasel_linux_amd64
# delta
eget https://github.com/dandavison/delta -a musl.tar
# difft
eget https://github.com/Wilfred/difftastic -b difft
# diffsitter
# also provides git-diffsitter
eget https://github.com/afnanenayet/diffsitter --all
# direnv
eget https://github.com/direnv/direnv
# diskonaut
eget https://github.com/imsnif/diskonaut
# doctree
# eget https://github.com/sourcegraph/doctree
# dog
# eget https://github.com/ogham/dog -f x86_64-unknown-linux-gnu.zip
# dsq
eget https://github.com/multiprocessio/dsq
# dua
eget https://github.com/Byron/dua-cli
# duc - https://github.com/zevv/duc
# a disk usage analyzer that saves to an index & provides a gui & a cli
# written in C, needs to be compiled, no static
# duf - better alternative to df -h
eget https://github.com/muesli/duf -a linux -a x86 -a tar
# dust
eget https://github.com/bootandy/dust -a 86_64 -a musl
# dyff - yaml / json diff
eget https://github.com/homeport/dyff
# espanso - text expander written in rust
# eget https://github.com/federico-terzi/espanso
# exa - better ls?
eget https://github.com/ogham/exa -a musl
# fac - TUI for fixing git conflicts
eget https://github.com/mkchoi212/fac
# fclones
# duplicate file finder
# NOTE: Not compiled with musl but glibc, will fail on boxes with older glibc
eget https://github.com/pkolaczk/fclones -a tgz
# fd - better find
eget https://github.com/sharkdp/fd -a x86_64 -a musl
# fselect - find files with sql queries
eget https://github.com/jhspetersson/fselect
# fx
eget https://github.com/antonmedv/fx
# fzr
# fzrepl
# gaze
eget https://github.com/wtetsu/gaze -f gaze
chmod +x ./gaze
# gdu - https://github.com/dundee/gdu
# Faster alternative to ncdu
eget https://github.com/dundee/gdu -a static
mv gdu_linux_amd64_static gdu
# gfold
# get status of all git repositories in current directory
eget https://github.com/nickgerace/gfold
# gh
eget https://github.com/cli/cli -a tar -f gh --to gh
# gitbatch
# git-icdiff
# gitlab
# gitui
eget https://github.com/extrawurst/gitui
# glab
eget https://github.com/profclems/glab -a tar -a Linux -a x86_64
# glow
eget https://github.com/charmbracelet/glow -a linux_x86_64.tar
# goaccess
# gobang
# gron
eget https://github.com/tomnomnom/gron
# hurl
eget https://github.com/Orange-OpenSource/hurl
# hexyl
# hey
# http load testing
# TODO: compare with oha
# htmlq
# hunter
# NOTE: Use lf / nnn instead
# eget https://github.com/rabite0/hunter -a linux-intel-64
# icdiff
# jid
eget https://github.com/simeji/jid
# jiq
eget https://github.com/fiatjaf/jiq
# jj
# jless
eget https://github.com/PaulJuliusMartinez/jless
# jo
# jog
# jqed
# just
eget https://github.com/casey/just
# kalker
# a calculator
# eget https://github.com/PaddiM8/kalker
# lazygit
# lf
eget https://github.com/gokcehan/lf
# lfs
eget https://github.com/canop/lfs
# lnav
eget https://github.com/tstack/lnav
# lolcate
eget https://github.com/ngirard/lolcate-rs -f lolcate
# lzop
# mcfly
eget https://github.com/cantino/mcfly -a x86_64 -a musl
# mdp
# mlr
eget https://github.com/johnkerl/miller -a linux -a amd64 -a tar
# mprocs
# run multiple commands in a tui
eget https://github.com/pvolok/mprocs
# navi
eget https://github.com/denisidoro/navi
# ncdu
# nnn
# oha
eget https://github.com/hatoo/oha
# osg
# pandoc
eget https://github.com/jgm/pandoc
# pet
# pgweb
# pipr
# build shell pipes interactively
eget https://github.com/elkowar/pipr
# pistol
eget https://github.com/doronbehar/pistol -a pistol
# procs
eget https://github.com/dalance/procs -a x86 -a lnx
# pup
# qsv
eget https://github.com/jqnatividad/qsv -a x86_64 -a musl --all
mv qsvlite qsv
rm qsvdp qsvlite_nightly qsvdp_nightly qsv_nightly
# rg
eget https://github.com/BurntSushi/ripgrep
# rgr
eget https://github.com/acheronfail/repgrep -a musl
# runiq
# sd
# silver
# NOTE: Breaks because libgit2.so is not present
# eget https://github.com/reujab/silver
# slides
eget https://github.com/maaslalani/slides
# smug
eget https://github.com/ivaaaan/smug
# so
# eget https://github.com/samtay/so -a musl
# sq
eget https://github.com/neilotoole/sq -a linux-amd64.tar
# sshpass
# starship
eget https://github.com/starship/starship -a starship-x86_64-unknown-linux-musl.tar.gz
# taskell
# termshark
# tokei
# t-rec
eget https://github.com/sassman/t-rec-rs -f t-rec
# tv
eget https://github.com/alexhallam/tv -f tidy-viewer
# unison
eget https://github.com/bcpierce00/unison -a static
# usql
eget https://github.com/https://github.com/xo/usql
# verco
# eget https://github.com/vamolessa/verco
# vivid
eget https://github.com/sharkdp/vivid -a x86_64 -a musl
# watchexec
eget https://github.com/watchexec/watchexec -a x86_64 -a musl.tar
# websocat
# socat for websockets
eget https://github.com/vi/websocat
# wkhtmltoimage
# wkhtmltopdf
# xidel
# xplr
eget https://github.com/sayanarijit/xplr -a xplr-linux-musl.tar.gz
# xxh
# eget https://github.com/xxh/xxh
# zellij
eget https://github.com/zellij-org/zellij
# zenith
eget https://github.com/bvaisvil/zenith
# zoxide
# fish shell - static binary
# eget https://github.com/xxh/fish-portable --download-only
popd
# eget https://raw.githubusercontent.com/learnbyexample/command_help/master/ch
# eget https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.38/GraphicsMagick-1.3.38.tar.xz/download