Browse Source

pkgsearch: improve void support

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

+ 6
- 1
pkgsearch View File

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

void() {
fzf --ansi < <(xbps-query -Rs '' | sort) |
local packagelist
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}' |
install 'xbps-install -S'
}

Loading…
Cancel
Save