45 lines
898 B
Bash
Executable file
45 lines
898 B
Bash
Executable file
#! /usr/bin/bash
|
|
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
apt_update() {
|
|
run0 apt update --audit && apt list --upgradable
|
|
run0 apt full-upgrade
|
|
run0 apt autoremove
|
|
}
|
|
|
|
emacs_update() {
|
|
echo Queuing updates for Emacs packages...
|
|
emacsclient --alternate-editor "" --reuse-frame --eval "(elpaca-pull-all t)" --no-wait > /dev/null
|
|
}
|
|
|
|
cargo_update() {
|
|
# shellcheck disable=SC2046
|
|
cargo install $(cargo install --list | grep '^[a-z0-9_-]\+ v[0-9.]\+:$' | cut --delimiter=' ' --fields=1)
|
|
}
|
|
|
|
pipx_update() {
|
|
pipx upgrade-all
|
|
}
|
|
|
|
git_sync_update() {
|
|
echo Updating git-sync...
|
|
resync-git-sync
|
|
}
|
|
|
|
podman_update() {
|
|
echo Updating container service images...
|
|
podman auto-update
|
|
podman --transient-store auto-update
|
|
echo Removing dangling images...
|
|
podman image prune --force
|
|
}
|
|
|
|
apt_update
|
|
emacs_update
|
|
pipx_update
|
|
cargo_update
|
|
ghup
|
|
git_sync_update
|
|
podman_update
|