Update dotfiles/.local/motd.sh
This commit is contained in:
parent
38bec024fb
commit
49d81e7d64
1 changed files with 4 additions and 2 deletions
|
@ -203,10 +203,12 @@ generate_bar_disk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
print_banner() {
|
print_banner() {
|
||||||
if [ -e lolcat ]; then
|
if command -v lolcat > /dev/null && command -v figlet > /dev/null; then
|
||||||
/usr/bin/env figlet "$(hostname)" | /usr/bin/env lolcat -f
|
/usr/bin/env figlet "$(hostname)" | /usr/bin/env lolcat -f
|
||||||
else
|
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")"
|
||||||
|
else
|
||||||
|
printf " \\033[1;37m$(hostname)\\033[0m\\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
|
|
Loading…
Reference in a new issue