X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.profile.d%2Fpager.bashrc;h=788da0b516e0e4c199a80963a064981c927f49be;hp=a13837504e3b66de5b3d333ca2da22285cad58dc;hb=a192bc895bf216ea264d57bfd139f2a30a99a808;hpb=c66932991642182e402d7f5bd7ee71038e5c93af diff --git a/.profile.d/pager.bashrc b/.profile.d/pager.bashrc index a138375..788da0b 100644 --- a/.profile.d/pager.bashrc +++ b/.profile.d/pager.bashrc @@ -1,9 +1,10 @@ # profile-required: TERM.bashrc -less=$(find_working less 2>/dev/null) +less=$(find_working -A less 2>/dev/null) if [ $? = 0 ]; then - export PAGER=less - export GIT_PAGER=$PAGER + export PAGER="less -R" + export GIT_PAGER="$PAGER" export LESSCHARSET=utf-8 + export LESS="AWQXdim" # Colours. case $(tput colors) in @@ -13,7 +14,7 @@ if [ $? = 0 ]; then # Bold is blue. export LESS_TERMCAP_md=$'\e[1m\e[38;5;33m' # Standout is yellow. - export LESS_TERMCAP_so=$'\e[1m\e[38;5;226m' + export LESS_TERMCAP_so=$'\e[1m\e[38;5;228m' # Underline is cyan. export LESS_TERMCAP_us=$'\e[0m\e[38;5;38m' ;;