From aee17fb21a1eae3e9ca24822d00f077afd198b6d Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sat, 3 Sep 2022 20:07:41 +0200 Subject: [PATCH] config/shell: fix less man page styling Search highlighting in light mode made characters invisible --- .config/shell/graphical | 4 ++-- .zshenv | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/shell/graphical b/.config/shell/graphical index 1a8d417..e03c8a5 100644 --- a/.config/shell/graphical +++ b/.config/shell/graphical @@ -62,8 +62,8 @@ theme() { #mozfile=$(find $HOME/.mozilla/firefox/ -maxdepth 2 -name addonStartup.json.lz4 | grep ".test") case "$theme" in (light) - export LESS_TERMCAP_md=$'\e[1;34m' # bold - export LESS_TERMCAP_so=$'\e[37m' # bottom indication + # LESS_TERMCAP_DEBUG=true man man + export LESS_TERMCAP_md=$'\e[1;34m' # bold blue export BAT_THEME="OneHalfLight" konsoleprofile colors="Light" sed -i 's/#\(include.*\/light-256.theme\)/\1/' "$XDG_CONFIG_HOME/task/taskrc" diff --git a/.zshenv b/.zshenv index 7f138e5..4b3e088 100644 --- a/.zshenv +++ b/.zshenv @@ -98,7 +98,7 @@ export PASSWORD_STORE_ENABLE_EXTENSIONS="true" export MANPAGER="less --squeeze-blank-lines +Gg" export LESS_TERMCAP_mb=$'\e[1;31m' # begin bold export LESS_TERMCAP_md=$'\e[1;32m' # begin blink -export LESS_TERMCAP_so=$'\e[36m' # bottom indication +export LESS_TERMCAP_so=$'\e[36m' # bottom indication and search highlight export LESS_TERMCAP_us=$'\e[4;33m' # begin underline export LESS_TERMCAP_me=$'\e[0m' # reset bold/blink export LESS_TERMCAP_se=$'\e[0m' # reset reverse video