From 276f126ea14f670d35aa028dadfd0beac941672d Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 31 Oct 2022 12:38:57 +0000 Subject: [PATCH] Update dotfiles/.profile --- dotfiles/.profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/.profile b/dotfiles/.profile index 6f03cb84..47a8d8b0 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -99,8 +99,8 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ] || ### MOTD # Add file named .hushlogin in the user's home directory to disable the MOTD - if [ ! -f ~/.hushlogin ]; then - if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [ "$SHLVL" -eq 1 ] && [[ $- == *i* ]]; } || command -v qubes-vmexec > /dev/null || command -v qubes-dom0-update > /dev/null || { [ -d /Applications ] && [ -d /System ]; }; then + if [ ! -f ~/.hushlogin ] && [ "$SHLVL" -eq 1 ]; then + if [ -f "$HOME/.local/motd.sh" ] && { [ -n "$SSH_CONNECTION" ] && [[ $- == *i* ]]; } || command -v qubes-vmexec > /dev/null || command -v qubes-dom0-update > /dev/null || { [ -d /Applications ] && [ -d /System ]; }; then if { [ -z "$MOTD" ] || [ "$MOTD" -ne 0 ]; } && [[ "$(hostname)" != *'-minimal' ]]; then . "$HOME/.local/motd.sh" # TODO - -- services