fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningeralt-p binding: don't add extra space character before pipe461670c36

master
333 B11 linesraw
1# localization: skip(private)
2function __fish_paginate -d "Paginate the current command using the users default pager"
3    set -l cmd (__fish_anypager)
4    or return 1
5
6    set -l pipe " &| $cmd"
7    if string match -rq -- ' \n\.$' "$(commandline -j; echo .)"
8        set pipe "&| $cmd"
9    end
10    fish_commandline_append $pipe
11end