aboutsummaryrefslogtreecommitdiff
path: root/completion/bash.patch
diff options
context:
space:
mode:
authorkitsunyan2018-05-05 01:22:05 +0000
committerkitsunyan2018-05-05 01:22:05 +0000
commit5902c51fe5b81ec6e8651eb2d29255ec6b9659fa (patch)
treeba10340034ddb96a70df9e8991f7b5a2f1dbe1d7 /completion/bash.patch
parent451cc4aca13cb6637b55c527d1e0647d6fffad5b (diff)
Refactor bash completion building
Diffstat (limited to 'completion/bash.patch')
-rw-r--r--completion/bash.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/completion/bash.patch b/completion/bash.patch
new file mode 100644
index 0000000..5dde344
--- /dev/null
+++ b/completion/bash.patch
@@ -0,0 +1,19 @@
+--- a/bash
++++ b/bash
+@@ -50,2 +50,3 @@
+- info list needed nodeps assume-installed print refresh recursive search sysupgrade'
+- 'c g i l p s u w y')
++ info list needed nodeps assume-installed print refresh recursive search sysupgrade
++ build keyserver noaur source'
++ 'c g i l n p s u w y z')
+@@ -64,1 +65,1 @@
+- ! $prev = --@(cachedir|color|config|dbpath|help|hookdir|gpgdir|logfile|root|version) ]]
++ ! $prev = --@(cachedir|color|config|dbpath|help|hookdir|gpgdir|keyserver|logfile|root|version) ]]
+@@ -81,1 +82,1 @@
+- _pacman_pkg Slq;;
++ _arch_compgen "`pakku -Ssq "$cur" 2> /dev/null`";;
+@@ -93,3 +94,1 @@
+-complete -F _pacman -o default pacman
+-complete -F _makepkg -o default makepkg
+-complete -F _pacman_key -o default pacman-key
++complete -F _pakku -o default pakku