Browse Source

add usage info to pkgsearch

develop
DanielFGray 4 years ago
parent
commit
d4feffcf73
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      pkgsearch

+ 16
- 0
pkgsearch View File

@@ -47,6 +47,22 @@ select-from() {
return 1
}

usage() {
LESS=-EXR less <<-HELP
pkgsearch [query]
lists and installs packages from your distro's repositories

without any arguments pkgsearch will list all available packages from your cache
all arguments are passed as search strings
note: on Arch Linux you must pass a string to query the AUR
HELP
}

if [[ $1 == -h ]]; then
usage
exit
fi

has -v fzf || die

declare search

Loading…
Cancel
Save