zsh-bench
pure
zsh-bench | pure | |
---|---|---|
24 | 17 | |
504 | 12,828 | |
- | - | |
4.1 | 4.5 | |
6 months ago | 18 days ago | |
Shell | Shell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zsh-bench
-
Oh My Zsh
Someone's made a benchmarking system for zsh: https://github.com/romkatv/zsh-bench#premade-configs
Of course, their config is the best according to the benchmark (and ohmyzsh is the slowest option), but DIY configs are also covered, particularly possible performance optimizations.
-
Faster Shell Startup with Shell Switching
Unfortunately, running exit is not a great strategy for running benchmarks. For zsh specifically, plugin managers are optimized for fast exit.
romkatv did a great write-up and benchmark within the context of zsh[0]. It's a great read.
[0] https://github.com/romkatv/zsh-bench#how-not-to-benchmark
- Dynamic Aliases and Functions in Zsh
- Benchmark for interactive zsh – plugins, frameworks and plugin managers
- zsh-smartcache: another evalcache but can update the cache
-
Announcing Spaceship v4.0 — a customizable Zsh prompt with asynchronous rendering
Given the addition of async rendering in the latest release of spaceship, I wasn't sure whether I should include performance in the list of features found in powerlevel10kbut but not in spaceship. I used zsh-bench to benchmark powerlevel10k on my laptop running on battery (I'm writing this on a train) with a config that makes powerlevel10k looks similar to spaceship. I simply ran p10k configure and chose what looked most similar: Lean Style, UNICODE, 256 colors, two lines, etc. Here are the benchmark results:
-
7x slowdown when modify $fpath and add completion script
Obligatory link since you are engaging in profiling interactive zsh: https://github.com/romkatv/zsh-bench.
-
What is the best plugin manager in your opinion?
1.) It's fast. Like, really fast. 1.) It supports deferred loading via zsh-defer 1.) It supports local plugins as well as ones hosted via a git provider (aka: GitHub, GitLab, BitBucket, etc) 1.) The codebase is simple and easy to understand and contribute to 1.) It supports git branches (with tag/shas on the roadmap) 1.) It supports partial plugin loading such as loading Oh-My-Zsh plugins and Prezto modules without loading the whole framework. 1.) There's an easy migration path from legacy plugin managers like Antigen/Antibody. 1.) Plugins are managed via a simple plugins file that makes it easy to share your config with others. 1.) And lots more
-
Zsh significantly faster when sourced from bash with bash as default shell
In any case, slow zsh startup is always caused by whatever you put in zsh startup files and it's always possible to reduce zsh startup to imperceptible levels without sacrificing any functionality by editing said startup files. There is a bit of info on interactive zsh performance at https://github.com/romkatv/zsh-bench.
-
Zpy is a simple zsh plugin manager written in python that don't add to the shell startup time.what to y'all think?
Why is this a good thing? Is this a proxy for performance? If so, you can measure performance directly with zsh-bench. This way you can describe the advantage in terms that have real value to end users. For example, you can say that the first prompt appears N milliseconds faster when using Zpy than if you were using something-else.
pure
-
Carapace: A multi-shell completion library and binary
Beyond zprof (https://www.bigbinary.com/blog/zsh-profiling) not really I'm afraid. I did the majority of my zsh-prompt hacking 10 years ago and haven't thought about it since. That snippet could be from anywhere.
You could peek at something like zprezto https://github.com/sorin-ionescu/prezto or pure https://github.com/sindresorhus/pure for tips.
Fetching git/hg/... info is always slow, so try and speed that up where you can (as to how to do that, uhh... I know my prompt has a dirty-state check nicked from pure for speed reasons). You can also cache any `asdf init zsh` or similar to a file and do the same "run in background" trick so the next shell will have any changes.
The biggest improvement I can remember was dropping zprezto for my own much smaller config, I really did not need much comparatively. Mostly some git info and "good default" options. I use zgenom for a plugin manager but only have 3 plugins, probably I should just dump it and inline the plugins to avoid getting owned one day.
-
Config to make powerlevel10k look like Starship?
Run p10k configure and choose Lean style. Pure style is inferior in all respects. It exists to make https://github.com/sindresorhus/pure users feel at home.
- What is this terminal and how do I get it?
- Pure: Pretty, minimal and fast ZSH prompt
-
A Web Developer's Ultimate Guide to the Terminal on macOS
git clone "$HOME/.zsh/pure" downloads Pure from GitHub. Here we tell git where to download from ("https://github.com/sindresorhus/pure.git") and where to put the downloaded files ("$HOME/.zsh/pure")
-
Useful Shell Prompt (2020)
I've been using pure theme for a few years and absolutely love it. It shows me everything I need, but doesn't feel cluttered.
It uses 2 lines, which is actually really nice. It gives space to show where you are and git status/branch, while still allowing you to write long commands.
https://github.com/sindresorhus/pure
-
Suggest a fast convenient zsh prompt?
I’ve always been pretty happy with https://github.com/sindresorhus/pure
-
pure prompt
hey I am trying to install the Pure prompt but I am unable to do so using npm I tried to find an alternative made for oh my zsh method so I tried to do this but it results in an error saying that the pure theme can not be found even though I can see the symlink in the themes folder all I did different from this was to clone it into the themes folder so please help thanks in advance
-
Mastering Bash and Terminal
My favorite for this purpose is pure prompt: https://github.com/sindresorhus/pure
I wasn’t sure about multi line at first, but really digging it now.
-
What are some of the best zsh themes?
https://github.com/sindresorhus/pure has been my go-to for years. Haven't found a reason to change.
What are some alternatives?
fisher - A plugin manager for Fish
starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
zinit - 🌻 Flexible and fast ZSH plugin manager
iterm2-snazzy - Elegant iTerm2 theme with bright colors
sheldon - :bowtie: Fast, configurable, shell plugin manager
fancy-git - That's a terminal prompt changer that shows a few cool git informations about your repository state. You can choose among different styles and enjoy all the aliases it provides you. Feel free for contributing, pull requests and issues are always welcome! ;)
powerlevel10k - A Zsh theme
zsh4humans - A turnkey configuration for Zsh
tide - 🌊 The ultimate Fish prompt.
oh-my-fish - The Fish Shell Framework
clink-flex-prompt - Flex prompt for Clink