From d1f34f709dbbc42307d28cd79d9c35b6b3f04bf5 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Fri, 3 Jan 2025 16:32:33 +0100 Subject: [PATCH] Warn me when a restart is required every time I open a new terminal --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index b4575bd..491b0ca 100644 --- a/.bashrc +++ b/.bashrc @@ -92,3 +92,5 @@ __git_complete c __git_main alias g=goto [ -s ~/Development/nemoinho/github.com/iridakos/goto/goto.sh ] && . ~/Development/nemoinho/github.com/iridakos/goto/goto.sh + +[ -s /var/run/reboot-required ] && (>&2 echo -e "\n\e[01;31mReboot required to apply updates!\e[0m\n")