Add weekly update script
This commit is contained in:
parent
ef049698a7
commit
e3f2c9ecbe
1 changed files with 17 additions and 0 deletions
17
scripts/update-all.sh
Executable file
17
scripts/update-all.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
# Update everything. Run on Monday mornings with coffee.
|
||||
set -e
|
||||
|
||||
echo "==> Updating apt..."
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
|
||||
echo "==> Updating Rust toolchain..."
|
||||
rustup update
|
||||
|
||||
echo "==> Updating cargo-installed tools..."
|
||||
cargo install-update -a 2>/dev/null || echo "(cargo-update not installed, skipping)"
|
||||
|
||||
echo "==> Updating Neovim plugins..."
|
||||
nvim --headless "+Lazy! update" +qa
|
||||
|
||||
echo "==> Done. Have a good week."
|
||||
Loading…
Reference in a new issue