Add zprof

This commit is contained in:
Blallo 2024-02-06 18:13:18 +01:00
parent 99d7306c08
commit cd774a8e59
No known key found for this signature in database
GPG key ID: C530464EEDCF489A

9
.zshrc
View file

@ -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