From 6223a324f1fb320967c56a3d017c6865382e9cfb Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Tue, 19 Mar 2024 17:01:45 +0530 Subject: [PATCH] bashrc: make the message from $nixos_needsreboot more "in the face" --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index d0049f2..460b72b 100644 --- a/.bashrc +++ b/.bashrc @@ -15,6 +15,7 @@ HISTCONTROL='ignorespace:ignoredups:erasedups' HISTFILESIZE=100000 HISTIGNORE="clear:history*:exit:date:* --help:* -help:* -h:whoami:ls:lah:lo" HISTSIZE=10000 +PS0_HORIZONTAL_RULE='++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' FILES_TO_SOURCE=() function path_add() { @@ -214,7 +215,7 @@ fi function nixos_needsreboot() { NIXOS_NEEDSREBOOT_FILE='/var/run/reboot-required' if [[ -f "${NIXOS_NEEDSREBOOT_FILE}" ]]; then - echo -e "\nNewer version of $(cat "${NIXOS_NEEDSREBOOT_FILE}") is available!" + echo -e "\n$(tput bold)${PS0_HORIZONTAL_RULE}\nNewer version of $(cat "${NIXOS_NEEDSREBOOT_FILE}") is available!\n${PS0_HORIZONTAL_RULE}$(tput sgr0)" fi }