feat(shell): replace pager with ov, add logs browser, and auto-generate paru wrapper
- Set $PAGER to ov in config.fish (falls back to less); remove LESS=-R - Rewrite less wrapper with full hierarchy: $PAGER → ov → less → more → cat - Simplify view.fish fallback to delegate to the less wrapper - Add logs function: fzf browser for scrollback and paru logs, opens in $PAGER - Add claude wrapper: auto-injects --remote-control unless already present - Add conf.d/paru-wrapper.fish: generates ~/.local/bin/paru on first run, versioned so future template changes auto-propagate on next shell start - Sync README.md and requirements.md to document all of the above
This commit is contained in:
+10
-5
@@ -1,11 +1,16 @@
|
||||
# Copyright (C) 2026 Rootiest
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
# alias less=most
|
||||
function less --wraps='most' --description 'alias less=most'
|
||||
if which most >/dev/null 2>&1
|
||||
most $argv
|
||||
else
|
||||
function less --wraps='ov' --description 'Pager wrapper: $PAGER → ov → less → more → cat'
|
||||
if set -q PAGER; and command -q $PAGER
|
||||
command $PAGER $argv
|
||||
else if command -q ov
|
||||
command ov $argv
|
||||
else if command -q less
|
||||
command less $argv
|
||||
else if command -q more
|
||||
command more $argv
|
||||
else
|
||||
command cat $argv
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user