mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Updated to latest version
Latest version of git-escape magic now escapes the @ shortcut for HEAD.
This commit is contained in:
parent
3ed1e55178
commit
b5e1000a37
1 changed files with 3 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# git-escape-magic - zle tweak for git command line arguments
|
||||
#
|
||||
# Copyright (c) 2011, 2012 Akinori MUSHA
|
||||
# Copyright (c) 2011, 2012, 2014 Akinori MUSHA
|
||||
# Licensed under the 2-clause BSD license.
|
||||
#
|
||||
# This tweak eliminates the need for manually escaping shell
|
||||
|
|
@ -81,9 +81,7 @@ git-escape-magic.self-insert() {
|
|||
[[ $words[(i)--] -gt $#words ]] ;;
|
||||
esac &&
|
||||
case "${words[-1]%%"$KEYS"}" in
|
||||
(*@)
|
||||
[[ "$KEYS" == \{* ]] ;;
|
||||
(*\^)
|
||||
(*[@^])
|
||||
[[ "$KEYS" == [{~^]* ]] ;;
|
||||
(*[@^]\{[^}]##)
|
||||
[[ "$KEYS" == \}* ]] ;;
|
||||
|
|
@ -134,3 +132,4 @@ git-escape-magic() {
|
|||
}
|
||||
|
||||
[[ -o kshautoload ]] || git-escape-magic "$@"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue