From: Oleg Broytman Date: Tue, 6 Sep 2022 11:08:07 +0000 (+0300) Subject: .profile: Move motd closer to the beginning X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=bfcf7092226ad1d083e0126a63a8269d60dbc8f3;p=dotfiles.git .profile: Move motd closer to the beginning To the very start of the interactive session. --- 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