mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
*autoload: `create' now sets up also the diff regex for Markdown files
This commit is contained in:
parent
92f0a3df32
commit
ed41ae76b6
1
.gitattributes
vendored
1
.gitattributes
vendored
|
|
@ -1 +1,2 @@
|
|||
*.zsh diff=zsh
|
||||
*.md diff=markdown
|
||||
|
|
|
|||
|
|
@ -2879,9 +2879,12 @@ EOF
|
|||
|
||||
[diff "zsh"]
|
||||
xfuncname = "^((function[[:blank:]]+[^[:blank:]]+[[:blank:]]*(\\\\(\\\\)|))|([^[:blank:]]+[[:blank:]]*\\\\(\\\\)))[[:blank:]]*(\\\\{|)[[:blank:]]*$"
|
||||
[diff "markdown"]
|
||||
xfuncname = "^#+[[:blank:]].*$"
|
||||
EOF
|
||||
|
||||
print -r -- "*.zsh diff=zsh" >! .gitattributes
|
||||
print -r -- "*.md diff=markdown" >! .gitattributes
|
||||
print -r -- "# $plugin" >! "README.md"
|
||||
command cp -vf "${ZINIT[BIN_DIR]}/LICENSE" LICENSE
|
||||
command cp -vf "${ZINIT[BIN_DIR]}/doc/Zsh.gitignore" .gitignore
|
||||
|
|
|
|||
Loading…
Reference in a new issue