summaryrefslogtreecommitdiff
path: root/plugins/gitfast/_git
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-21 21:11:49 -0500
committerFelipe Contreras <felipe.contreras@gmail.com>2014-04-21 21:11:49 -0500
commit6a5c8fb81b369566ed0f5e408dab7a7213354ade (patch)
tree477c99369376fac1b140572132fa7caf4a1f057a /plugins/gitfast/_git
parenteafd5f325208421b82a770e57441dd1063eb5745 (diff)
downloadzsh-6a5c8fb81b369566ed0f5e408dab7a7213354ade.tar.gz
zsh-6a5c8fb81b369566ed0f5e408dab7a7213354ade.tar.bz2
zsh-6a5c8fb81b369566ed0f5e408dab7a7213354ade.zip
gitfast: update to upstream v1.9.2
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'plugins/gitfast/_git')
-rw-r--r--plugins/gitfast/_git10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/gitfast/_git b/plugins/gitfast/_git
index fac5e711e..6b7796857 100644
--- a/plugins/gitfast/_git
+++ b/plugins/gitfast/_git
@@ -30,10 +30,10 @@ if [ -z "$script" ]; then
local -a locations
local e
locations=(
+ $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
'/etc/bash_completion.d/git' # fedora, old debian
'/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian
'/usr/share/bash-completion/git' # gentoo
- $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
)
for e in $locations; do
test -f $e && script="$e" && break
@@ -76,6 +76,14 @@ __gitcomp_nl ()
compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
}
+__gitcomp_nl_append ()
+{
+ emulate -L zsh
+
+ local IFS=$'\n'
+ compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
+}
+
__gitcomp_file ()
{
emulate -L zsh