-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-linux
More file actions
executable file
·34 lines (25 loc) · 803 Bytes
/
update-linux
File metadata and controls
executable file
·34 lines (25 loc) · 803 Bytes
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
#!/usr/bin/env nu
use nushell/scripts/globals.nu
use nushell/scripts/log.nu
use nushell/scripts/setup
$env.LOG_CATEGORY = "update-linux"
log info "Starting"
setup update app dnf { ^sudo dnf -y update --refresh }
setup update app paru {
^paru -Syu --noconfirm --disable-download-timeout --skipreview --devel
^paru -c --noconfirm
}
if (which paru | is-empty) {
setup update app pacman { ^sudo pacman -Syu --noconfirm --disable-download-timeout }
}
setup update app rustup { ^rustup update }
setup update app cargo { ^cargo install-update -a --locked }
setup update app tldr { ^tldr -u }
setup update app bob { ^bob use nightly }
setup update app nvim {
^nvim --headless "+Lazy! sync" "+qa"
^nvim --headless "+MasonToolsUpdateSync" "+qa"
}
setup update app pnpm {
^pnpm update -g -L
}