diff --git a/.gitattributes b/.gitattributes index 837911ac..70f52585 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ *.zsh diff=zsh +*.md diff=markdown diff --git a/zinit-autoload.zsh b/zinit-autoload.zsh index 0f1ef66e..9c709530 100644 --- a/zinit-autoload.zsh +++ b/zinit-autoload.zsh @@ -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