From e97ba8c0793030452fe9d9127fc6f31445fbfdba Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 9 Aug 2021 18:36:31 +0200 Subject: [PATCH] profile: fix man colors The end sequence was undefined and messing up everything. I took the opportunity, while fixing it, to tweak a bit the colors themselves and a definition for blinking text matching bold text. --- files/profile.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/profile.sh b/files/profile.sh index 3667da0..41fd66d 100644 --- a/files/profile.sh +++ b/files/profile.sh @@ -20,12 +20,14 @@ export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py" export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # Make man pages pretty -export LESS_TERMCAP_so="$(printf '%s\n' 'setaf 8' 'setab 6' | tput -S)" +Reset="$(tput sgr0)" export LESS_TERMCAP_md="$(printf '%s\n' 'setaf 3' | tput -S)" -export LESS_TERMCAP_us="$(printf '%s\n' 'setaf 15' 'smul' | tput -S)" -export LESS_TERMCAP_se="$Reset" +export LESS_TERMCAP_mb="$LESS_TERMCAP_md" export LESS_TERMCAP_me="$Reset" +export LESS_TERMCAP_us="$(printf '%s\n' 'setaf 7' 'smul' | tput -S)" export LESS_TERMCAP_ue="$Reset" +export LESS_TERMCAP_so="$(printf '%s\n' 'setaf 4' 'setab 0' | tput -S)" +export LESS_TERMCAP_se="$Reset" export GROFF_NO_SGR=1 # Prevent path_helper from messing with the PATH when starting tmux.