Skip to content

Instantly share code, notes, and snippets.

@GuiMarthe
Forked from elalemanyo/README.md
Created December 12, 2022 18:25
Show Gist options
  • Save GuiMarthe/5c9c0fde9c3bef731607832860babe24 to your computer and use it in GitHub Desktop.
Save GuiMarthe/5c9c0fde9c3bef731607832860babe24 to your computer and use it in GitHub Desktop.
Debug zsh startup time

Debug zsh startup time

  1. Inject profiling code

    At the beginning of your .zshrc add following: zmodload zsh/zprof

    and at the end add: zprof

    This will load zprof mod and display what your shell was doing durung your initialization.

  2. Measure startup time

    time zsh -i -c exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment