Update .config/fish/conf.d/30-man.fish
This commit is contained in:
parent
27a8517fdd
commit
67f363abc9
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue