config/shell/arch: remove file list package name prefix

This commit is contained in:
xeruf 2022-05-22 16:41:33 +02:00
parent dc536f0090
commit 7aaa7ebabc
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ yas() {
# List installed packages into fzf and remove selection # List installed packages into fzf and remove selection
# Tip: use -e to list only explicitly installed packages # Tip: use -e to list only explicitly installed packages
yar() { yar() {
pkg=$(yay --color=always -Q "$@" | yzf 1 --tiebreak=length --preview="yay --color always -Qli {1}") pkg=$(yay --color=always -Q "$@" | yzf 1 --tiebreak=length --preview="yay --color always -Qli {1} | sed 's/^[^a-z]*m{1}//'")
if test -n "$pkg" if test -n "$pkg"
then echo "Removing $pkg..." then echo "Removing $pkg..."
cmd="yay -R --cascade --recursive $pkg" cmd="yay -R --cascade --recursive $pkg"