]> git.phdru.name Git - dotfiles.git/blobdiff - .profile
.profile, .shellrc: use dircolors
[dotfiles.git] / .profile
index 2fd98f0219105c778ceaf0cbe52be446fd3fe5fd..564c40fb73eb26157692264ac75ce4d5c4602cdf 100644 (file)
--- a/.profile
+++ b/.profile
@@ -75,8 +75,12 @@ if [ -t 0 ] ; then
       ;;
    esac
 
+   if [ -x /usr/bin/dircolors ]; then
+       test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+   fi
+
    PAGER=less
-   LESS="-gimq"
+   LESS="gimq"
    case "$LC_CTYPE" in
       *UTF-8) LESSCHARSET=utf-8
       ;;
@@ -85,7 +89,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 +181,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