Compare commits

...

5 Commits

Author SHA1 Message Date
Peter J. Holzer d8c7ad831d Merge branch 'master' into hjp 2024-05-11 16:52:09 +02:00
Peter J. Holzer a404a33d56 Mark common line lengths 2024-05-11 16:51:18 +02:00
Peter J. Holzer 03cc524476 Set colors for man to match the background 2024-04-18 12:35:02 +02:00
Peter J. Holzer 6460b497a9 Override LC_TIME
I want a 24 hour clock, so I can't use en_US. However, other locales may
not be installed, so try a few likely candidates ordered by by
readability of the output of date(1).
2024-02-01 14:45:34 +01:00
Peter J. Holzer 71f5d92587 Make titles white (against a dark background)
Not sure why Jinja expressions are rendered as titles. but they are and
anyway black on a dark background isn't very readable.
2023-11-21 13:20:26 +01:00
4 changed files with 35 additions and 9 deletions

View File

@ -37,7 +37,7 @@ hi Tag term=bold ctermfg=DarkGreen
hi Todo term=standout ctermfg=Black ctermbg=Yellow guifg=Blue guibg=Yellow
hi Type term=underline ctermfg=Blue gui=NONE guifg=Blue
hi Visual term=reverse ctermfg=White ctermbg=DarkBlue gui=NONE guifg=Black guibg=Yellow
hi Title ctermfg=black
hi Title ctermfg=white
hi IncSearch term=reverse cterm=NONE ctermfg=black ctermbg=cyan
hi link Boolean Constant

1
.vimrc
View File

@ -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

13
.zshenv
View File

@ -109,6 +109,19 @@ then
unsetopt NULL_GLOB
fi
for i in ~/bin/match_locale /usr/bin/match_locale
do
if [ -x "$i" ]
then
match_locale="$i"
break
fi
done
if [ -n "$match_locale" ]
then
LC_TIME=$($match_locale LC_TIME en_IE.UTF-8 en_AU.UTF-8 en_GB.UTF-8 en_DK.UTF-8 C.UTF-8)
fi
case "$LANG" in
*.iso88591)
export LESSCHARSET=latin1

28
.zshrc
View File

@ -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() {