Dotfiles update 2025-12-22 12:18

This commit is contained in:
Aaron D. Lee
2025-12-22 12:18:10 -05:00
parent 488dff244b
commit d528c2f7a1
2 changed files with 6 additions and 3 deletions

View File

@@ -308,12 +308,14 @@ _background_tasks() {
$_dotfiles_dir/bin/dotfiles-sync.sh status -s 2> /dev/null $_dotfiles_dir/bin/dotfiles-sync.sh status -s 2> /dev/null
#[[ -x "$sync_script" ]] && "$sync_script" --auto 2>/dev/null &! #[[ -x "$sync_script" ]] && "$sync_script" --auto 2>/dev/null &!
fi fi
_df_check_sys_updates
# Check number of available updates and export.
export UPDATE_PKG_COUNT=$(checkupdates | wc -l)
} }
_df_check_sys_updates() {
# Check number of available updates and export.
export UPDATE_PKG_COUNT=$(checkupdates | wc -l)
}
# ============================================================================ # ============================================================================
# Initialization Strategy # Initialization Strategy
# ============================================================================ # ============================================================================

View File

@@ -144,4 +144,5 @@ less() {
sys-update() { sys-update() {
local update_date=$(date -d "today" +"%Y-%m-%d %H:%M") local update_date=$(date -d "today" +"%Y-%m-%d %H:%M")
sudo snapper -c root create --description "System Update ${update_date}" --command "sudo pacman -Syu" sudo snapper -c root create --description "System Update ${update_date}" --command "sudo pacman -Syu"
_df_check_sys_updates
} }