fish-shell/share/functions/__fish_paginate.fish

9 lines
216 B
Fish
Raw Normal View History

function __fish_paginate -d "Paginate the current command using the users default pager"
set -l cmd less
if set -q PAGER
echo $PAGER | read -at cmd
end
fish_commandline_append " &| $cmd"
end