From 5c12ff4a3b7697438cde0b8238f14e8b3b7f2f47 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 6 May 2026 14:50:49 -0700 Subject: [PATCH] No longer push the update information to the screen, use notifications. --- bashrc.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/bashrc.sh b/bashrc.sh index 38351b5..d2fe180 100755 --- a/bashrc.sh +++ b/bashrc.sh @@ -363,11 +363,21 @@ eval "$(declare -F | grep -v _ | sed 's/-f /-fx /')" ( if [[ -d "$project" ]]; then git -C "$project" fetch >/dev/null 2>&1 && git -C "$project" status | grep "is behind" \ | while read status; do - log "\n\n`date` - env-termux has has been improved." - log " '$status'" - log "\n\n`date` - Run 'reload-termux' to update." + #log "\n\n`date` - env-termux has has been improved." + #log " '$status'" + #log "\n\n`date` - Run 'reload-termux' to update." + + title="env-termux Updates Available" + message="Please run reload-termux to pull the latest changes." + if [[ -d /sdcard ]]; then + termux-notification \ + -t "$title" \ + -c "$message" + else + notify-send "$title" "$message" + fi done -fi & ) +fi ) # Complete! PROG="$(basename -- "${BASH_SOURCE[0]}")"