X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.profile;h=a3981654b8335650b053d99b6a95d4c84c921f73;hp=38212bcc516a9256353c56524d25ef6d28ec6160;hb=6d8fcbe56b488f473406ef26c0c7a3cc2a4f0ce1;hpb=5fca22875b01ee5cd897c8a1a0420f52ba1ad2ba diff --git a/.profile b/.profile index 38212bc..a398165 100644 --- a/.profile +++ b/.profile @@ -76,7 +76,7 @@ if [ -t 0 ] ; then esac PAGER=less - LESS="-gimq" + LESS="gimq" case "$LC_CTYPE" in *UTF-8) LESSCHARSET=utf-8 ;; @@ -177,6 +177,10 @@ if [ -t 0 ] ; then export HGUSER unset name email + + if test -f .hushlogin && ! cmp -s .motd /etc/motd; then + tee $HOME/.motd < /etc/motd + fi fi # No need to set DISPLAY - ssh sets DISPLAY and calls xauth