Dotfiles update 2025-12-22 12:18
This commit is contained in:
@@ -308,12 +308,14 @@ _background_tasks() {
|
||||
$_dotfiles_dir/bin/dotfiles-sync.sh status -s 2> /dev/null
|
||||
#[[ -x "$sync_script" ]] && "$sync_script" --auto 2>/dev/null &!
|
||||
fi
|
||||
|
||||
# Check number of available updates and export.
|
||||
export UPDATE_PKG_COUNT=$(checkupdates | wc -l)
|
||||
_df_check_sys_updates
|
||||
|
||||
}
|
||||
|
||||
_df_check_sys_updates() {
|
||||
# Check number of available updates and export.
|
||||
export UPDATE_PKG_COUNT=$(checkupdates | wc -l)
|
||||
}
|
||||
# ============================================================================
|
||||
# Initialization Strategy
|
||||
# ============================================================================
|
||||
|
||||
@@ -144,4 +144,5 @@ less() {
|
||||
sys-update() {
|
||||
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"
|
||||
_df_check_sys_updates
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user