mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-05 05:11:15 -03:00
12 lines
333 B
Fish
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
|