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 else
printf "\\n" printf "\\n"
printf " \\033[1;37mHostname:\\033[0m %s\\n" "$(hostname)" printf " \\033[1;37mHostname:\\033[0m %s\\n" "$(hostname)"
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")"
else else
printf "\\n" printf "\\n"
printf " \\033[1;37mHostname:\\033[0m %s\\n" "$(hostname)" printf " \\033[1;37mHostname:\\033[0m %s\\n" "$(hostname)"
printf "\\n"
fi fi
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then

View file

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