mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-15 19:30:51 +01:00
fish: Add color to man pages
Note that this will affect the output of `env` since color codes are used. Using a function to invoke man is not ideal since fish uses its own function for its man pages.
This commit is contained in:
parent
c0526a8c55
commit
72411885cd
@ -18,6 +18,14 @@ export FZF_DEFAULT_OPTS='--height 40% --reverse --border --color=16'
|
||||
# Required to make gpg-agent work in cases like git commit
|
||||
export GPG_TTY=(tty)
|
||||
|
||||
# Add color to man pages
|
||||
set -x -U LESS_TERMCAP_md (printf "\e[01;31m")
|
||||
set -x -U LESS_TERMCAP_me (printf "\e[0m")
|
||||
set -x -U LESS_TERMCAP_se (printf "\e[0m")
|
||||
set -x -U LESS_TERMCAP_so (printf "\e[01;44;30m")
|
||||
set -x -U LESS_TERMCAP_ue (printf "\e[0m")
|
||||
set -x -U LESS_TERMCAP_us (printf "\e[01;32m")
|
||||
|
||||
# Always use the default keybindings in fish
|
||||
fish_default_key_bindings
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user