1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-09 17:00:44 +01:00

Add git-escape-magic plugin (#2847)

This commit is contained in:
Matthew Turney
2019-08-19 10:57:19 -05:00
committed by Marc Cornellà
parent 90a0de4698
commit 8634d9542a
3 changed files with 161 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Git Escape Magic
This plugin is copied from the original at
https://github.com/knu/zsh-git-escape-magic. All credit for the
functionality enabled by this plugin should go to @knu.
An excerpt from that project's readme explains it's purpose.
> It eliminates the need for manually escaping those meta-characters. The zle function it provides is context aware and recognizes the characteristics of each subcommand of git. Every time you type one of these meta-characters on a git command line, it automatically escapes the meta-character with a backslash as necessary and as appropriate.
## Useage
To use this plugin add it to your list of plugins in your `.zshrc` file.
**NOTE**: If you use url-quote-magic it must be included before this
plugin runs to prevent any conflicts.