summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2019-09-13 01:32:57 +0200
committerLevente Polyak <anthraxx@archlinux.org>2019-09-28 00:16:09 +0200
commit64b7d995040fc670aaed5fbd048157b3feba0574 (patch)
treecfb9955b87bea4a329c3372da874d149102c813d /lib
parentf32a264796b3b43662b4734f1730d7a819d32484 (diff)
downloaddevtools-64b7d995040fc670aaed5fbd048157b3feba0574.tar.gz
devtools-64b7d995040fc670aaed5fbd048157b3feba0574.tar.xz
zsh_completion: add sogrep completions
Transform sogrep into an in-prog so we can benefit from the m4 macro to specify valid repos in a single place of truth. Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/valid-repos.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/valid-repos.sh b/lib/valid-repos.sh
new file mode 100644
index 0000000..252fdcf
--- /dev/null
+++ b/lib/valid-repos.sh
@@ -0,0 +1,31 @@
+#!/hint/bash
+# License: Unspecified
+:
+
+# shellcheck disable=2034
+_repos=(
+ staging
+ testing
+ core
+ extra
+ community-staging
+ community-testing
+ community
+ multilib-staging
+ multilib-testing
+ multilib
+ gnome-unstable
+ kde-unstable
+)
+
+# shellcheck disable=2034
+_build_repos=(
+ staging
+ testing
+ extra
+ multilib-staging
+ multilib-testing
+ multilib
+ gnome-unstable
+ kde-unstable
+)