From bfcf7092226ad1d083e0126a63a8269d60dbc8f3 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 6 Sep 2022 14:08:07 +0300 Subject: [PATCH] .profile: Move motd closer to the beginning To the very start of the interactive session. --- .profile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.profile b/.profile index 29723ad..d9f65db 100644 --- a/.profile +++ b/.profile @@ -69,6 +69,10 @@ export ORGANIZATION # NNTPSERVER # Interactive only commands if [ -t 0 ] ; then + #if test -f .hushlogin && ! cmp -s .motd /etc/motd; then + # tee $HOME/.motd < /etc/motd + #fi + if [ -z "$TERM" ]; then eval `tset -Q -s -m 'network:?xterm'` fi @@ -199,10 +203,6 @@ if [ -t 0 ] ; then unset name email - #if test -f .hushlogin && ! cmp -s .motd /etc/motd; then - # tee $HOME/.motd < /etc/motd - #fi - #if which pyenv >/dev/null 2>&1; then # PYENV_ROOT="$HOME/.pyenv" # export PYENV_ROOT -- 2.39.2