summaryrefslogtreecommitdiff
path: root/plugins/gitfast/_git
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-06-05 08:04:32 -0700
committerRobby Russell <robby@planetargon.com>2015-06-05 08:04:32 -0700
commitdac07b2652b10386e0b0c1ffc874c9a0a451ea10 (patch)
tree1c8a48b3fa8df6b3ee83f17334bfa2d62e401897 /plugins/gitfast/_git
parent35c7b7bbcf45fa52f43aca7d0b52e45fdfc11931 (diff)
parent5918d9100b294beb490cbd5f1f15fe2b064d9e62 (diff)
downloadzsh-dac07b2652b10386e0b0c1ffc874c9a0a451ea10.tar.gz
zsh-dac07b2652b10386e0b0c1ffc874c9a0a451ea10.tar.bz2
zsh-dac07b2652b10386e0b0c1ffc874c9a0a451ea10.zip
Merge pull request #2736 from felipec/fc/gitfast
gitfast: update to upstream v1.9.2
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