Use lesspipe ad less-preprocessor

On typical linux distros `lesspipe` is already shipped as part of less.
Though on macos it isn't, but I found out that it can be isntalled via
brew. So, I have no reason to not use and can savely ditch my custom
lessfilter.
This commit is contained in:
2025-09-05 14:28:31 +02:00
parent 6ee0f000d7
commit 6fc6551b02
2 changed files with 1 additions and 23 deletions

View File

@@ -82,7 +82,7 @@ which zoxide > /dev/null && eval "$(zoxide init bash)" && alias cd=z
if [ -f .local/bin/lessfilter ]
then
export LESS='-R'
export LESSOPEN='|~/.local/bin/lessfilter %s'
export LESSOPEN='|lesspipe %s'
fi
[ -s "$XDG_CONFIG_HOME/bash/local-config" ] && . "$XDG_CONFIG_HOME/bash/local-config"