Only bother loading mapfile when we actually need it (it's fine to call zmodload twice)

This commit is contained in:
Danielle McLean 2016-10-04 22:31:17 +11:00
parent f709043ee2
commit daa5fdd7c1
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -1,5 +1,4 @@
#!/usr/bin/env zsh
zmodload zsh/mapfile
bootstrap() {
echo 'Bootstrapping your dotfiles...' >&2
@ -56,6 +55,7 @@ link() {
}
process-stow-no-fold() {
zmodload zsh/mapfile
for file in ${(f)mapfile[$1]}; do
file=~/$file
[[ -e $file ]] && continue