X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.profile;h=5eab941ba26d926872315dae0c00efcc05c9c8f7;hb=bd57e37cf34ee5160502d3cad22bb0a6e570b83d;hp=e2798872d8532e7a0b2e833c5c124f6883da7945;hpb=292ce8c9da30142171a9c391d2e1832fd846a8fe;p=dotfiles.git diff --git a/.profile b/.profile index e279887..5eab941 100644 --- a/.profile +++ b/.profile @@ -65,16 +65,22 @@ 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 + 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 ;; @@ -83,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 @@ -175,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 @@ -185,6 +195,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"