mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: add .gitignore with '*' pattern in a plugins ._zinit/ directory (#397)
Zinit creates a directory named `._zinit` to store metadata. However, this metadata should not be added to git. Closes #395 Signed-off-by: wzy <32936898+Freed-Wu@users.noreply.github.com> Co-authored-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
6845b7a91e
commit
fccb5080ab
|
|
@ -800,7 +800,7 @@ ____
|
|||
`#compdef <names ...>'
|
||||
____
|
||||
|
||||
Has 549 line(s). Doesn't call other functions.
|
||||
Has 573 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _autoload_, _bindkey_, _compdef_, _compdump_, _eval_, _read_, _setopt_, _unfunction_, _zle_, _zstyle_
|
||||
|
||||
|
|
|
|||
|
|
@ -1462,7 +1462,7 @@ ____
|
|||
Note that some terminals do not support all combinations.
|
||||
____
|
||||
|
||||
Has 117 line(s). Doesn't call other functions.
|
||||
Has 120 line(s). Doesn't call other functions.
|
||||
|
||||
Called by:
|
||||
|
||||
|
|
@ -1485,7 +1485,7 @@ ____
|
|||
`#compdef <names ...>'
|
||||
____
|
||||
|
||||
Has 549 line(s). Doesn't call other functions.
|
||||
Has 573 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _autoload_, _bindkey_, _compdef_, _compdump_, _eval_, _read_, _setopt_, _unfunction_, _zle_, _zstyle_
|
||||
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
|
|||
command rm -f "${REPLY:t}.sig"
|
||||
fi
|
||||
|
||||
command mkdir -p ._zinit
|
||||
command mkdir -p ._zinit && echo '*' > ._zinit/.gitignore
|
||||
[[ -d ._zinit ]] || return 2
|
||||
builtin print -r -- $url >! ._zinit/url || return 3
|
||||
builtin print -r -- ${REPLY} >! ._zinit/is_release${count:#1} || return 4
|
||||
|
|
@ -404,7 +404,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
|
|||
return 1
|
||||
}
|
||||
} elif [[ $site = cygwin ]] {
|
||||
command mkdir -p "$local_path/._zinit"
|
||||
command mkdir -p "$local_path/._zinit" && echo '*' > "$local_path/._zinit/.gitignore"
|
||||
[[ -d "$local_path" ]] || return 1
|
||||
|
||||
(
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@
|
|||
svn
|
||||
)
|
||||
|
||||
command mkdir -p "$___pfx"
|
||||
command mkdir -p "$___pfx" && echo '*' > "$___pfx/.gitignore"
|
||||
local ___key ___var_name
|
||||
# No nval_ices here
|
||||
for ___key in ${ice_order[@]:#(${(~j:|:)nval_ices[@]})} ${(s: :)___add_ices[@]}; do
|
||||
|
|
|
|||
Loading…
Reference in a new issue