From 03cc524476a8010a5b544ae2cdec3f8bc2910764 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 18 Apr 2024 12:34:10 +0200 Subject: [PATCH 1/2] Set colors for man to match the background --- .zshrc | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.zshrc b/.zshrc index 2b1e2b1..da138ea 100644 --- a/.zshrc +++ b/.zshrc @@ -67,14 +67,26 @@ dup(){ cls() { clear; true } man () { - LESS_TERMCAP_mb=$'\e'"[1;31m" \ - LESS_TERMCAP_md=$'\e'"[1;38;5;88m" \ - LESS_TERMCAP_me=$'\e'"[0m" \ - LESS_TERMCAP_se=$'\e'"[0m" \ - LESS_TERMCAP_so=$'\e'"[1;44;33m" \ - LESS_TERMCAP_ue=$'\e'"[0m" \ - LESS_TERMCAP_us=$'\e'"[1;38;5;22m" \ - command man "$@" + if [[ "$BG" = "dark" ]] + then + LESS_TERMCAP_mb=$'\e'"[1;31m" \ + LESS_TERMCAP_md=$'\e'"[1;32m" \ + LESS_TERMCAP_me=$'\e'"[0m" \ + LESS_TERMCAP_se=$'\e'"[0m" \ + LESS_TERMCAP_so=$'\e'"[1;44;33m" \ + LESS_TERMCAP_ue=$'\e'"[0m" \ + LESS_TERMCAP_us=$'\e'"[36m" \ + command man "$@" + else + LESS_TERMCAP_mb=$'\e'"[1;31m" \ + LESS_TERMCAP_md=$'\e'"[1;38;5;88m" \ + LESS_TERMCAP_me=$'\e'"[0m" \ + LESS_TERMCAP_se=$'\e'"[0m" \ + LESS_TERMCAP_so=$'\e'"[1;44;33m" \ + LESS_TERMCAP_ue=$'\e'"[0m" \ + LESS_TERMCAP_us=$'\e'"[1;38;5;22m" \ + command man "$@" + fi } venv() { From a404a33d56e758e6564f50d96bd594f14259f70a Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 11 May 2024 16:51:18 +0200 Subject: [PATCH 2/2] Mark common line lengths --- .vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.vimrc b/.vimrc index c46683d..efd12db 100644 --- a/.vimrc +++ b/.vimrc @@ -1,6 +1,7 @@ set ai " Disable (ab)use of X11 selection set clipboard= +set colorcolumn=72,80,100,132 set comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,n:\| set expandtab set exrc