Update dotfiles/.local/motd.sh, dotfiles/.profile

This commit is contained in:
Brian Zalewski 2022-10-31 22:48:57 +00:00
parent ad99f0e23c
commit 884f4518c8
2 changed files with 4 additions and 6 deletions

View file

@ -209,14 +209,12 @@ print_banner() {
else
printf "\\n"
printf " \\033[1;37mHostname:\\033[0m %s\\n" "$(hostname)"
printf "\\n"
fi
elif command -v figlet >/dev/null; then
printf "\\n%s\\n" "$(figlet -t -f "$BANNER_FONTPATH" " $BANNER_TEXT")"
else
printf "\\n"
printf " \\033[1;37mHostname:\\033[0m %s\\n" "$(hostname)"
printf "\\n"
fi
if [ -f /etc/os-release ]; then

View file

@ -106,18 +106,18 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$0" = 'zsh' ] || [ "$0" = '
# TODO - -- services
if [ -n "$SSH_CONNECTION" ]; then
# SSH
bash_motd --banner --processor --memory --diskspace --services --docker --updates --letsencrypt --login
bash_motd --banner --processor --memory --diskspace --docker --updates --letsencrypt --login
elif command -v qubes-vmexec > /dev/null; then
# Qubes AppVM
bash_motd --banner --memory --diskspace --docker --updates --services
bash_motd --banner --memory --diskspace --docker --updates
elif command -v qubes-dom0-update > /dev/null; then
# Qubes dom0
bash_motd --banner --updates --services
bash_motd --banner --updates
elif [ -d /Applications ] && [ -d /System ]; then
# macOS
bash_motd --banner
else
bash_motd --banner --processor --memory --diskspace --services --docker --updates --letsencrypt --login
bash_motd --banner --processor --memory --diskspace --docker --updates --letsencrypt --login
fi
fi
fi