mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-06 03:33:43 +08: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
9 lines
216 B
Fish
9 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
|