]> git.phdru.name Git - dotfiles.git/blobdiff - .profile
Add .hushlogin, show /etc/motd in .profile if it was changed
[dotfiles.git] / .profile
index e2798872d8532e7a0b2e833c5c124f6883da7945..370bb752c217d8599034c45d6b63ff61b92f805f 100644 (file)
--- a/.profile
+++ b/.profile
@@ -65,11 +65,13 @@ if [ -t 0 ] ; then
          # mutt, python and vim
          BACKGROUND=DARK
          export BACKGROUND
+         . "$HOME"/lib/config/less/dark_bg
       ;;
 
       *rxvt*|screen*|*term*|vt100)
          BACKGROUND=LIGHT
          export BACKGROUND
+         . "$HOME"/lib/config/less/light_bg
       ;;
    esac
 
@@ -83,7 +85,7 @@ if [ -t 0 ] ; then
       ;;
    esac
    #LESSCHARDEF=32c.
-   LESSEDIT='vim ?lm+%lm -- %f'
+   LESSEDIT='vim ?lt+%lt. -- %f'
    export PAGER LESS LESSCHARSET LESSEDIT # LESSCHARDEF
 
    EDITOR="$HOME"/.vim/vim.sh
@@ -175,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
@@ -185,6 +191,7 @@ if [ -n "$DISPLAY" ]; then
    # mutt, python and vim
    BACKGROUND=LIGHT
    export BACKGROUND
+   . "$HOME"/lib/config/less/light_bg
 
    # BROWSERs
    BROWSER="firefox:seamonkey:chromium:google-chrome:opera:xlinks2:$BROWSER"