X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.profile;h=5eab941ba26d926872315dae0c00efcc05c9c8f7;hb=2d2048f5ff5f0ce412d6d60bce2b3da3214d8d07;hp=38212bcc516a9256353c56524d25ef6d28ec6160;hpb=5fca22875b01ee5cd897c8a1a0420f52ba1ad2ba;p=dotfiles.git diff --git a/.profile b/.profile index 38212bc..5eab941 100644 --- 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="FRXgimq" case "$LC_CTYPE" in *UTF-8) LESSCHARSET=utf-8 ;; @@ -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