Update dotfiles/.local/motd.sh

This commit is contained in:
Brian Zalewski 2022-10-31 20:47:08 +00:00
parent 7dd13896cd
commit 6c513cc69c

View file

@ -204,12 +204,12 @@ generate_bar_disk() {
print_banner() { print_banner() {
if command -v lolcat >/dev/null && command -v figlet >/dev/null; then if command -v lolcat >/dev/null && command -v figlet >/dev/null; then
if [ -f "$HOME/.local/labs/term-welcome-anim" ]; then if [[ "${#HOSTNAME}" -lt 14 ]]; then
figlet "$(hostname)" | lolcat -f figlet "$(hostname)" | lolcat -f
else else
figlet "Manhattan" | lolcat -a -f printf "\\n"
mkdir -p "$HOME/.local/labs" > /dev/null printf " \\033[1;37mHostname:\\033[0m %s\\n" "$(hostname)"
touch "$HOME/.local/labs/term-welcome-anim" printf "\\n"
fi fi
elif command -v figlet >/dev/null; then elif command -v figlet >/dev/null; then
printf "\\n%s\\n" "$(figlet -t -f "$BANNER_FONTPATH" " $BANNER_TEXT")" printf "\\n%s\\n" "$(figlet -t -f "$BANNER_FONTPATH" " $BANNER_TEXT")"