From 04956887e26e94bdf98f3a74d3e7af434da294ec Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 15 Jan 2024 09:54:27 -0800 Subject: [PATCH] profiling --- runcoms/zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runcoms/zshrc b/runcoms/zshrc index 678fc42..96e8e5e 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -2,6 +2,8 @@ # Executes commands at the start of an interactive session. # +[ -z "$ZPROF" ] || zmodload zsh/zprof + # 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. @@ -132,3 +134,5 @@ source ~/.orbstack/shell/init.zsh 2>/dev/null || : # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +[ -z "$ZPROF" ] || zprof