You are not logged in.
When I run
pacman -Fl package. It lists it without paging. To page I should pipe it. But it's uncomfortable since I should do it every time I run the pacman -Fl or similar command. How can I set pager then? I tried to search in manpages of the pacman for the 'pager' keyword, also in first 3 search results from google.
Offline
Write a pacman function that (maybe conditionally) invokes the commands using a pager (and you probably want less -F)
Offline
Agree with Seth.
If using bash, put functions into .bashrc, set permissions, and either open a new terminal or source .bashrc.
Specific example..
Usage: pacfilelist <pkg>
Example: pacfilelist gimp
#!/bin/bash
function pacfilelist() {
: 'List files owned by package and pipe to less'
pacman -Fl "${1:?Missing package name}" | less
}Generic example.
Usage: pacless <pacman_options> <pkg>
Example1: pacless -Fl gimp
Example2: pacless -Q
#!/bin/bash
function pacless() {
: 'Pipe pacman to less'
pacman "${@}" | less
}Last edited by mountaintrek (2024-08-15 22:31:36)
Offline
Offline