minor fixes in scripts

This commit is contained in:
Niklas Kapelle 2023-10-18 00:34:53 +02:00
parent 29841882d4
commit 12cd2e2fba
Signed by: niklas
GPG Key ID: 4EB651B36D841D16
3 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
export FZF_DEFAULT_OPTS='
--prompt="Manual: "
--preview="echo {1} | sed -E \"s/^\((.+)\)/\1/\" | xargs -I{S} man -Pcat {S} {2} 2>/dev/null"'
--preview="echo {1} | sed -E \"s/^\((.+)\)/\1/\" | xargs -I{S} man -Pcat {S} {2} | bat -l man -p --color=always 2>/dev/null"'
while getopts ":s:" opt; do
case $opt in

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# requires: expac
pacman -Qqm | sort | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'
exit 0

View File

@ -1,4 +1,3 @@
#!/usr/bin/env bash
# requires: expac
comm -23 <(pacman -Qqe | sort) <({ pacman -Qqg base-devel; expac -l '\n' '%E' base; } | sort -u) | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'
exit 0
pacman -Qqe | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'