chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f3a92c
)
Properly complete partially written vercodes
author
Daniel Martí
<mvdan@mvdan.cc>
Fri, 18 Apr 2014 21:56:25 +0000
(23:56 +0200)
committer
Daniel Martí
<mvdan@mvdan.cc>
Fri, 18 Apr 2014 21:56:25 +0000
(23:56 +0200)
completion/bash-completion
patch
|
blob
|
history
diff --git
a/completion/bash-completion
b/completion/bash-completion
index 91e18e04530f7f598f139e3493288c45a80ea07c..ce2cc357abc8ec7d3ed76e9d225dc841a9087eae 100644
(file)
--- a/
completion/bash-completion
+++ b/
completion/bash-completion
@@
-65,7
+65,8
@@
__apk_vercode() {
}
__vercode() {
- local p=${cur:0:-1}
+ local p v
+ echo $cur | IFS=':' read p v
COMPREPLY=( $( compgen -P "${p}:" -W "$( while read line; do
if [[ "$line" == "Build Version:"* ]]
@@
-99,7
+100,7
@@
__complete_build() {
-*)
__complete_options
return 0;;
- *:)
+ *:
*
)
__vercode
return 0;;
*)