Make the zsh Prompt Go Faster

This page summarizes the projects mentioned and recommended in the original post on dev.to

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. fnm

    🚀 Fast and simple Node.js version manager, built in Rust

    There are obviously other methods, of course, but you can find them on almost any other blog talking about zsh prompts so for the sake of brevity, I'm not going to repeat them(an example: use fnm instead of nvm or why would you not use mise). There is also a faster syntax highlighter for zsh. so on and so forth.

  2. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
  3. zsh-syntax-highlighting

    Fish shell like syntax highlighting for Zsh.

    zsh can compile zsh scripts using the builtin zcompile into wordcode. This will have the effect of having faster parsing. The way we use this to get a faster prompt is to explicitly ask zsh to compile certain chunky plugins(think your syntax highlighters and completion plugins) into wordcode.

  4. nvm

    Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

    There are obviously other methods, of course, but you can find them on almost any other blog talking about zsh prompts so for the sake of brevity, I'm not going to repeat them(an example: use fnm instead of nvm or why would you not use mise). There is also a faster syntax highlighter for zsh. so on and so forth.

  5. mise

    dev tools, env vars, task runner

    There are obviously other methods, of course, but you can find them on almost any other blog talking about zsh prompts so for the sake of brevity, I'm not going to repeat them(an example: use fnm instead of nvm or why would you not use mise). There is also a faster syntax highlighter for zsh. so on and so forth.

  6. zsh-autosuggestions

    Fish-like autosuggestions for zsh

    zsh can compile zsh scripts using the builtin zcompile into wordcode. This will have the effect of having faster parsing. The way we use this to get a faster prompt is to explicitly ask zsh to compile certain chunky plugins(think your syntax highlighters and completion plugins) into wordcode.

  7. evalcache

    :hatching_chick: zsh plugin to cache eval loads to improve shell startup time

    First we will talk about evalcaching: caching the results of evals. This is a thing because some heavier/older version managers use this to inject themselves into your shell and some of them just take too much time. For those kinds of plugins you can use evalcache. After sourcing the script, you can use it like so:

  8. zsh-async

    Because your terminal should be able to perform tasks asynchronously without external tools!

    This is probably the most important one. Again, no surprises here. We will use a zsh async library,zsh-async, to have some async segments in our zsh prompt.

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • NVM is completely broken, how can I fix it?

    5 projects | /r/node | 23 Mar 2022
  • Fnm – Fast and simple Node.js version manager, built in Rust

    1 project | news.ycombinator.com | 10 Dec 2024
  • Create a Hugo Theme from Scratch - I

    3 projects | dev.to | 15 Oct 2024
  • Cannot Create Next App On Windows

    1 project | /r/reactjs | 1 Jul 2023
  • Pyright slows down my terminal, trying to speed it up, am using Lazyvim

    1 project | /r/neovim | 5 Jun 2023

Did you know that Shell is
the 11th most popular programming language
based on number of references?