Files
fish-shell/share/functions/__fish_paginate.fish
2025-11-01 12:45:17 +01:00

12 lines
333 B
Fish

# localization: skip(private)
function __fish_paginate -d "Paginate the current command using the users default pager"
set -l cmd (__fish_anypager)
or return 1
set -l pipe " &| $cmd"
if string match -rq -- ' \n\.$' "$(commandline -j; echo .)"
set pipe "&| $cmd"
end
fish_commandline_append $pipe
end