dotfiles/.config/fish/functions/man.fish
2020-03-03 21:09:37 +01:00

13 lines
367 B
Fish

function man
set -x LESS_TERMCAP_mb (tput blink)
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)
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