dotfiles/.config/fish/functions/man.fish

14 lines
367 B
Fish
Raw Normal View History

function man
set -x LESS_TERMCAP_mb (tput blink)
2020-03-03 21:09:37 +01:00
set -x LESS_TERMCAP_md (tput bold)
set -x LESS_TERMCAP_me (tput sgr0)
set -x LESS_TERMCAP_so (tput smso)
set -x LESS_TERMCAP_se (tput rmso)
2020-03-03 21:09:37 +01:00
set -x LESS_TERMCAP_us (tput sitm)
set -x LESS_TERMCAP_ue (tput sgr0)
set -x MANWIDTH (tput cols)
test $MANWIDTH -gt 80; and set -x MANWIDTH 80
/usr/bin/man $argv
end