extend less with lesspipe and colorize it with vomcolor

This commit is contained in:
Patrick Cao Huu Thien 2025-02-03 15:58:13 +01:00
parent ea9e862271
commit 8f62e5b118
Signed by untrusted user who does not match committer: pcao
GPG Key ID: B57DBE40C72FBCF4
1 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,11 @@ shopt -s checkwinsize
shopt -s autocd
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
[ -x /usr/bin/lesspipe.sh ] && eval "$(/usr/bin/lesspipe.sh)"
# LESS options
# colorize with vimcolor
export LESSCOLORIZER=vimcolor
export LESS="-FRX"
# very basic prompt -- more in .bash_prompt
@ -71,8 +73,6 @@ test -d ~/dotfiles/bash_completion && {
export MANPAGER="less -R --use-color -Dsc -Dk+r -Dd+g -Du+c -DPgb -DEbR"
export MANROFFOPT="-P -c"
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe.sh ] && eval "$(lesspipe.sh)"
# startship
# https://starship.rs/
type -t starship >/dev/null && {