Update .config/fish/conf.d/30-man.fish

This commit is contained in:
punkfairie 2024-09-29 21:41:35 -07:00
parent 27a8517fdd
commit 67f363abc9
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -1,11 +1,5 @@
#!/usr/bin/env fish
if command -v bat &>/dev/null
set batcmd bat
else if command -v batcat &>/dev/null
set batcmd batcat
end
if set -q batcmd
set -gx MANPAGER "sh -c 'col -bx | $batcmd -l man -p'"
if command -v most &>/dev/null
set -gx MANPAGER "sh -c 'col -bx | most'"
end