Plugin to magically escape zsh meta-characters in git commands

This plugin simply autoloads git-escape-magic which is included here and
copied from https://github.com/knu/zsh-git-escape-magic .
This commit is contained in:
Matthew Turney 2014-05-31 22:26:08 -05:00 committed by Matthew Turney
commit 3ed1e55178
No known key found for this signature in database
GPG key ID: 0FC06F79FAA020CF
2 changed files with 145 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# Automatically detect and escape zsh globbing meta-characters when used with
# git refspec characters like `[^~{}]`. NOTE: This must be loaded _after_
# url-quote-magic.
#
# This trick is detailed at https://github.com/knu/zsh-git-escape-magic and is
# what allowed this plugin to exist.
autoload -Uz git-escape-magic
git-escape-magic