From daa5fdd7c1f0d0b072c8d876e848cbc88476bfee Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 4 Oct 2016 22:31:17 +1100 Subject: [PATCH] Only bother loading mapfile when we actually need it (it's fine to call zmodload twice) --- .local/bin/dots | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/dots b/.local/bin/dots index 829db05..2505718 100755 --- a/.local/bin/dots +++ b/.local/bin/dots @@ -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