zsh-bench
powerlevel10k
zsh-bench | powerlevel10k | |
---|---|---|
24 | 291 | |
494 | 43,035 | |
- | - | |
4.1 | 8.7 | |
6 months ago | 8 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.
powerlevel10k
-
Terminal commands I use as a frontend developer
That’s the minimum terminal setup. You can modify the look and add plugins such as autocompletion to your terminal by installing ohmyzsh and using themes such as powerlevel10k. I am already using them.
-
Oh My Zsh
I used ohmyzsh with powerlevel10k/powerlevel10k[0] for years though recently i've settled on fish [1]
[0] https://github.com/romkatv/powerlevel10k
-
Weird Color Stuff In The Terminal
I had just gone through a fun tutorial for setting up oh-my-zsh with a nice color scheme from iterm2colorschemes.com and a decent prompt and I was wondering: can I make my oblique strategy look nice? how can you actually use the colors from your scheme in the output in your cli?
-
Quickest path to a decent zsh setup?
A more robust way to do this would be to add simple wrappers that clone any external Zsh plugins you use regularly and store them in your own $ZSH_CUSTOM. For example, you say you like Powerlevel10k, so make that an OMZ plugin:
-
where can I get the below linux terminal theme?
Looks like PowerLevel10 theme for Zsh shell
-
Setup Macbook for Frontend Dev
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
-
fish-shell: the user-friendly command-line shell
Am i the only one who feels fish is not worth it despite of hype? Don't get me wrong. I think that fish is really good shell.
BUT...
After adding the following plugins to zsh(before you chime in, it's just adding these lines,not anything configuring much. also it auto bootstraps on new install), I found out that fish is no where near configured zsh.
1) https://github.com/zdharma-continuum/zinit (plugin manager)
2) https://github.com/zdharma-continuum/fast-syntax-highlightin...
3) https://github.com/zdharma-continuum/history-search-multi-wo...
4) https://github.com/zsh-users/zsh-autosuggestions
5) https://github.com/zsh-users/zsh-completions
6) https://github.com/Aloxaf/fzf-tab
7) any good shell prompt generator like https://github.com/romkatv/powerlevel10k
For example, I use fzf integration for tab completion. Fish's fzf integration is nowhere as good as that of zsh's. Also, posix compat and almost bash compat of zsh is plus.
I acknowledge that zsh isn't perfect shell either and I have tried and failed few times in past to switch to fish. If you provide me compelling reason/s to switch to fish, I am all ears.
-
How to use neovim as a server?
To build upon that concept, you can even have your shell prompt display a symbol if you have a backgrounded job. I use https://github.com/romkatv/powerlevel10k and the background_jobs handles it for me.
-
Which terminal do you use? I don't like Warp
I also use PowerLevel10k. Themes up your zsh to make it look nice, pretty customisable.
-
How to get this type of User and Hostname in Powerlevel10k?
start here: https://github.com/romkatv/powerlevel10k
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
ohmyzsh - 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
sheldon - :bowtie: Fast, configurable, shell plugin manager
oh-my-posh - The most customisable and low-latency cross platform/shell prompt renderer
zsh4humans - A turnkey configuration for Zsh
zsh-autocomplete - 🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
oh-my-fish - The Fish Shell Framework
fish-shell - The user-friendly command line shell.
ble.sh - Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.
nerd-fonts - Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more