Browse Source

pkgsearch: slightly cleaner void package parsing

pull/6/head
DanielFGray 4 years ago
parent
commit
ee92575538
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      pkgsearch

+ 4
- 5
pkgsearch View File

@@ -111,13 +111,12 @@ arch() {
}

void() {
local packagelist
local packagelist packagename='{ sub(/-[^\-]*$/, "", $2); print $2 }'
packagelist=$(xbps-query -Rs '' | sort)
fzf --bind="Ctrl-X:execute[
p=\$(awk '{sub(/-[^\-]*$/, \"\", \$2); print \$2}' <<< {});
less < <(xbps-query -Rx \$p) > /dev/tty]" \
<<< "$packagelist" |
awk '{sub(/-[^\-]*$/, "", $2); print $2}' |
p=\$(awk \"$packagename\" <<< {});
less < <(xbps-query -Rx \$p) > /dev/tty]" <<< "$packagelist" |
awk "$packagename" |
install 'xbps-install -S'
}


Loading…
Cancel
Save