Only bother loading mapfile when we actually need it (it's fine to call zmodload twice)
This commit is contained in:
parent
f709043ee2
commit
daa5fdd7c1
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
zmodload zsh/mapfile
|
|
||||||
|
|
||||||
bootstrap() {
|
bootstrap() {
|
||||||
echo 'Bootstrapping your dotfiles...' >&2
|
echo 'Bootstrapping your dotfiles...' >&2
|
||||||
|
@ -56,6 +55,7 @@ link() {
|
||||||
}
|
}
|
||||||
|
|
||||||
process-stow-no-fold() {
|
process-stow-no-fold() {
|
||||||
|
zmodload zsh/mapfile
|
||||||
for file in ${(f)mapfile[$1]}; do
|
for file in ${(f)mapfile[$1]}; do
|
||||||
file=~/$file
|
file=~/$file
|
||||||
[[ -e $file ]] && continue
|
[[ -e $file ]] && continue
|
||||||
|
|
Loading…
Reference in a new issue