From cb247a8a9e76beaa418848e6aa4596be60d00cfd Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 3 May 2020 19:51:45 +0100 Subject: [PATCH] Load zprof module if ZPROF env var a non-zero value --- zshenv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshenv b/zshenv index 74abf16..6e56b47 100644 --- a/zshenv +++ b/zshenv @@ -2,6 +2,11 @@ # ZSH Environment Setup # +# Enable ZSH profiling? +if [[ -n "$ZPROF" ]]; then + zmodload zsh/zprof; +fi + # Ensure values in path variable are unique typeset -U path