__fish_anypager: prefer less over other pagers
This is our traditional behavior; "man" and "git" do the same. (cherry picked from commit b83f3b0e982c89e2dc2c2fc23b950b84d7ee8d19) Proposing this for 3.7.1 because I think see this as regression in 3.7.0 - a user might have installed bat for syntax highlighting only.
This commit is contained in:
parent
c31e194120
commit
47bb07eda3
@ -17,7 +17,7 @@ function __fish_anypager --description "Print a pager to use"
|
||||
end
|
||||
|
||||
# Cheesy hardcoded list of pagers.
|
||||
for cmd in bat lv most less more
|
||||
for cmd in less bat lv most more
|
||||
if command -q $cmd
|
||||
echo -- $cmd
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user