mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
7c2dd694e0
This introduces two functions to - toggle a process prefix, used for adding "sudo" - add a job suffix, used for adding "&| less" Not sure if they are very useful; we'll see. Closes #7905
8 lines
216 B
Fish
8 lines
216 B
Fish
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
|