X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.profile;h=5eab941ba26d926872315dae0c00efcc05c9c8f7;hb=bd57e37cf34ee5160502d3cad22bb0a6e570b83d;hp=6254c067081a7a353dbdf6a0ea611cad9062adf7;hpb=16862d6c73ccda3803e4618d16b080a90fe9d84f;p=dotfiles.git diff --git a/.profile b/.profile index 6254c06..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 ;; @@ -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