]> git.phdru.name Git - dotfiles.git/blobdiff - .profile
.gitconfig: remove core.pager and pass -FRSX in env
[dotfiles.git] / .profile
index 6254c067081a7a353dbdf6a0ea611cad9062adf7..a3981654b8335650b053d99b6a95d4c84c921f73 100644 (file)
--- 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
       ;;
@@ -85,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
@@ -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