1
0
Fork 0

bashrc: make the message from $nixos_needsreboot more "in the face"

This commit is contained in:
Pratham Patel 2024-03-19 17:01:45 +05:30
parent 9aa74c53f1
commit 6223a324f1
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 2 additions and 1 deletions

View File

@ -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
}