]> git.phdru.name Git - dotfiles.git/commitdiff
.profile: Move motd closer to the beginning
authorOleg Broytman <phd@phdru.name>
Tue, 6 Sep 2022 11:08:07 +0000 (14:08 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 6 Sep 2022 11:08:07 +0000 (14:08 +0300)
To the very start of the interactive session.

.profile

index 29723ad08b6245144e10930c7316e165ef8056cb..d9f65dbc748c1c5db3d70ece70031e5e300f5404 100644 (file)
--- 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