From 55ccb53ed5d3fe091b918595ad2e1ce3dcb83475 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 7 Nov 2013 10:37:59 -0600 Subject: [PATCH] * usr/share/byobu/profiles/bashrc: - add an Ubuntu color theme for less pager (manpages) --- debian/changelog | 2 ++ usr/share/byobu/profiles/bashrc | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index 578f48ff..b0a5cf1c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ byobu (5.63) unreleased; urgency=low - point straight to the right section * usr/share/byobu/profiles/bashrc: - save a fork, use a function for exit status, from Nick Moffit + * usr/share/byobu/profiles/bashrc: + - add an Ubuntu color theme for less pager (manpages) -- Dustin Kirkland Fri, 01 Nov 2013 15:27:51 -0500 diff --git a/usr/share/byobu/profiles/bashrc b/usr/share/byobu/profiles/bashrc index 87f6cbcd..20df6799 100644 --- a/usr/share/byobu/profiles/bashrc +++ b/usr/share/byobu/profiles/bashrc @@ -41,6 +41,13 @@ if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then ;; esac export GREP_COLORS="ms=01;38;5;202:mc=01;31:sl=:cx=:fn=01;38;5;132:ln=32:bn=32:se=00;38;5;242" + export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode – red + export LESS_TERMCAP_md=$(printf '\e[01;38;5;180m') # enter double-bright mode – bold light orange + export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us) + export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode + export LESS_TERMCAP_so=$(printf '\e[03;38;5;202m') # enter standout mode – orange background highlight (or italics) + export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode + export LESS_TERMCAP_us=$(printf '\e[04;38;5;139m') # enter underline mode – underline aubergine ;; *) # Use Byobu colors (green / blue / red)