[zsh] Don't time every custom script.

This commit is contained in:
Keanu Timmermans 2021-05-14 10:05:35 +02:00
parent 32c6c80622
commit 7eb8ac0772
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 2 additions and 2 deletions

View File

@ -53,11 +53,11 @@ for script in functions options path env zplg plugins aliases completion zle pro
done
if [[ -d "$ZSH_DOTFILES/custom" ]]; then
_perf_timer_start "custom scripts"
for script in $ZSH_DOTFILES/custom/*.zsh; do
_perf_timer_start "custom/${script##*/}"
source "$script"
_perf_timer_stop "custom/${script##*/}"
done
_perf_timer_stop "custom scripts"
fi
_perf_timer_stop "total"