From 169b2e108f4f1b975d5289311b969da490fd5d39 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Mon, 11 Aug 2025 10:01:11 +0200 Subject: [PATCH] Fix reboot or changed config notices to be rendered correctly everywhere --- .bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 7d79692..01e874c 100644 --- a/.bashrc +++ b/.bashrc @@ -103,6 +103,8 @@ __git_complete c __git_main alias g=goto [ -f ~/Development/nemoinho/github.com/iridakos/goto/goto.sh ] && . ~/Development/nemoinho/github.com/iridakos/goto/goto.sh -[ -f /var/run/reboot-required ] && (>&2 echo -e "\n\e[01;31mReboot required to apply updates!\e[0m\n") +# reboot required notice +[ -f /var/run/reboot-required ] && (>&2 echo -e "\n\033[01;31mReboot required to apply updates"'!'"\033[0m\n") -[ -n "$(config status --short)" ] && (>&2 echo -e "\n\e[01;33mCurrent configuration is not committed"'!'"\e[0m\nRun "'"'"\e[01mconfig status\e[0m"'"'" for further information\n") +# config changed notice +[ -n "$(config status --short)" ] && (>&2 echo -e "\n\033[01;33mCurrent configuration is not committed"'!'"\033[0m\nRun "'"'"\033[01mconfig status\033[0m"'"'" for further information\n")