From 12cd2e2fbabfc269ba3c808127c162e75cb040c0 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Wed, 18 Oct 2023 00:34:53 +0200 Subject: [PATCH] minor fixes in scripts --- .local/share/scripts/macho.sh | 2 +- .local/share/scripts/pacman-browse-aur.sh | 2 +- .local/share/scripts/pacman-browse.sh | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.local/share/scripts/macho.sh b/.local/share/scripts/macho.sh index 282f333..040615c 100755 --- a/.local/share/scripts/macho.sh +++ b/.local/share/scripts/macho.sh @@ -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 diff --git a/.local/share/scripts/pacman-browse-aur.sh b/.local/share/scripts/pacman-browse-aur.sh index fbb6d49..e2d2c98 100755 --- a/.local/share/scripts/pacman-browse-aur.sh +++ b/.local/share/scripts/pacman-browse-aur.sh @@ -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 + diff --git a/.local/share/scripts/pacman-browse.sh b/.local/share/scripts/pacman-browse.sh index 050fa1a..254b1fe 100755 --- a/.local/share/scripts/pacman-browse.sh +++ b/.local/share/scripts/pacman-browse.sh @@ -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)'