Add zprof
This commit is contained in:
parent
99d7306c08
commit
cd774a8e59
1 changed files with 9 additions and 0 deletions
9
.zshrc
9
.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
|
||||
|
|
Loading…
Reference in a new issue