From cd774a8e59cf0a7fa84a4d3b37c2bac954548ea7 Mon Sep 17 00:00:00 2001 From: Blallo Date: Tue, 6 Feb 2024 18:13:18 +0100 Subject: [PATCH] Add zprof --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index fd395ba..4d5d7e2 100644 --- a/.zshrc +++ b/.zshrc @@ -1,3 +1,7 @@ +# Enable profiling +if ! [ -z $ZSHDEBUG ]; then + zmodload zsh/zprof +fi # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. @@ -432,3 +436,8 @@ alias ,pkpr='piknik -paste | tar xzpvf -' # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +# Run profiling +if ! [ -z $ZSHDEBUG ]; then + zprof +fi