mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
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:
parent
291e96dcd0
commit
3ed1e55178
2 changed files with 145 additions and 0 deletions
9
plugins/git-escape-magic/git-escape-magic.plugin.zsh
Normal file
9
plugins/git-escape-magic/git-escape-magic.plugin.zsh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue