summaryrefslogtreecommitdiff
path: root/plugins/gitfast/_git
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-21 01:34:44 -0500
committerFelipe Contreras <felipe.contreras@gmail.com>2013-04-21 02:57:05 -0500
commit72a8c08cc897520ea74ae49e811cd9e34501c520 (patch)
tree6a59abac92d75a3141c0a7a49bfa4904cabcf20b /plugins/gitfast/_git
parent85426a57a2561f675a6ad51754d6687c3ec571c2 (diff)
downloadzsh-72a8c08cc897520ea74ae49e811cd9e34501c520.tar.gz
zsh-72a8c08cc897520ea74ae49e811cd9e34501c520.tar.bz2
zsh-72a8c08cc897520ea74ae49e811cd9e34501c520.zip
gitfast: synchronize with upstream
Up to version 1.8.2.1. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'plugins/gitfast/_git')
-rw-r--r--plugins/gitfast/_git9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/gitfast/_git b/plugins/gitfast/_git
index 45775021f..cf8116d47 100644
--- a/plugins/gitfast/_git
+++ b/plugins/gitfast/_git
@@ -60,6 +60,15 @@ __gitcomp_nl ()
compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
}
+__gitcomp_file ()
+{
+ emulate -L zsh
+
+ local IFS=$'\n'
+ compset -P '*[=:]'
+ compadd -Q -p "${2-}" -f -- ${=1} && _ret=0
+}
+
_git ()
{
local _ret=1