diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-25 13:22:09 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-25 13:37:39 +0200 |
commit | d591cebf4463e42569400bbcbaba5e16dcad734b (patch) | |
tree | cf38559cdc498291b4b0d077462c62861c709e3b /share/completions/pkgfile.fish | |
parent | 8abb19aaca21f1a6b0d422f8f16ab11e38389f58 (diff) |
Introduce __fish_print_pacman_repos helper
This is used in at least 4 places, all of which have a bug in that they
print "options" as a valid repo. It seems better to fix it once,
especially given that there are tons of AUR helpers and pacman wrappers,
all of which might need this info.
Diffstat (limited to 'share/completions/pkgfile.fish')
-rw-r--r-- | share/completions/pkgfile.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/pkgfile.fish b/share/completions/pkgfile.fish index e8af0b0f..dae11771 100644 --- a/share/completions/pkgfile.fish +++ b/share/completions/pkgfile.fish @@ -4,7 +4,7 @@ complete -c pkgfile -s b -l binaries -d 'only show files in a {s}bin/ director complete -c pkgfile -s c -l case-sensitive -d 'make searches case sensitive' complete -c pkgfile -s g -l glob -d 'allow the use of * and ? as wildcards' complete -c pkgfile -s r -l regex -d 'allow the use of regex in searches' -complete -c pkgfile -s R -l repo -d 'search only in the specified repository' -xa '(cat /etc/pacman.conf|grep "^\[" | sed "s/\[\|]//g")' +complete -c pkgfile -s R -l repo -d 'search only in the specified repository' -xa '(__fish_print_pacman_repos)' complete -c pkgfile -s v -l verbose -d 'enable verbose output' complete -c pkgfile -s i -l info -d 'provides information about the package owning a file' -r complete -c pkgfile -s l -l list -d 'list files of a given package; similar to "pacman -Ql"' -xa "(pacman -Sl | cut --delim ' ' --fields 2- | tr ' ' \t | sort)" |