This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/fish/functions/man.fish

11 lines
543 B
Fish

function man -d "man with colors"
set -x LESS_TERMCAP_mb (printf "\e[01;31m") # begin blink
set -x LESS_TERMCAP_md (printf "\e[01;36m") # begin bold
set -x LESS_TERMCAP_me (printf "\e[0m") # reset bold/blink
set -x LESS_TERMCAP_se (printf "\e[0m") # reset reverse video
set -x LESS_TERMCAP_so (printf "\e[01;44;33m") # begin reverse video
set -x LESS_TERMCAP_ue (printf "\e[0m") # reset underline
set -x LESS_TERMCAP_us (printf "\e[01;32m") # begin underline
command man $argv
end