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
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
if command -v bat &>/dev/null
|
if command -v most &>/dev/null
|
||||||
set batcmd bat
|
set -gx MANPAGER "sh -c 'col -bx | most'"
|
||||||
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'"
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue