dotfiles
zsh-bench
Our great sponsors
dotfiles | zsh-bench | |
---|---|---|
13 | 24 | |
926 | 492 | |
- | - | |
4.6 | 4.1 | |
13 days ago | 6 months 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.
dotfiles
-
Oh My Zsh
Yep, I use zsh with 2 plugins. One for syntax highlighting commands and another for showing auto-suggestions. It's really fast. The rest is nearly a default zsh set up in terms of zsh configuration. Everything is documented in my dotfiles https://github.com/nickjj/dotfiles.
My prompt is a 1 liner that shows your git branch as well as coloring up $ to be red or not based on if the last command failed. Coincidentally I just released a blog post today on coloring up your prompt based on if the last command failed at https://nickjanetakis.com/blog/color-your-shell-prompt-red-i....
-
Ask HN: How do you sync your computers development configurations/environment?
I stole/copied my setup from Nick Janetakis who's just great all around. Its worked for me through several new systems and many updates.
https://github.com/nickjj/dotfiles
-
vim-dirtytalk: spellcheck dictionary for programmers 📖
If anyone is looking for a word list of programming terms I have one with 500+ words in my dotfiles at https://github.com/nickjj/dotfiles/blob/master/.vim/spell/en.utf-8.add.
-
Zim – The Zsh configuration framework with blazing speed and modular extensions
Is anyone else mostly rolling with the zsh (not oh-my-zsh) defaults?
After so many years of using Bash I switched to zsh almost a year ago. I use the vanilla zsh set up with 2 plugins:
- https://github.com/zdharma-continuum/fast-syntax-highlightin... for very good and fast syntax highlighting
- https://github.com/zsh-users/zsh-autosuggestions for auto-suggestions
I don't use a plugin manager, instead I put together a ~20 line shell script[0] which handles either cloning or pulling plugins, then you can load them in your zshrc[1].
I haven't found the need for anything else and my whole dev environment is based on using tmux, terminal Vim, etc.. Basically I spend a lot of time there in my day to day.
[0] https://github.com/nickjj/dotfiles/blob/0076e508403c9981e393...
[1] https://github.com/nickjj/dotfiles/blob/0076e508403c9981e393...
-
Newbie here, how should i use vim on windows ? gvim or wsl 2 vim ?
My set up is documented at https://github.com/nickjj/dotfiles and I have a bunch of Vim related videos at https://nickjanetakis.com/blog/tag/vim-tips-tricks-and-tutorials.
-
New job, windows computer. I tried to use VisualStudo code, but I got back to vim anyway
This is what I've been doing for years (WSL 2). It's really solid if you combine tmux with terminal Vim. My dotfiles work exactly the same on my native Linux device as WSL 2 and it's fast too.
-
"How to do what 90% of plugins do in vanilla vim" - what are some of the 10% plugins?
Here's a couple from my vimrc.
-
My Favorite Commandline Oneliners
All of my aliases are listed in my dotfiles at: https://github.com/nickjj/dotfiles/blob/master/.aliases
-
GUI app support is now available for the Windows Subsystem for Linux
I handle both cases in my dotfiles: https://github.com/nickjj/dotfiles/blob/a29ced43dd384f7226aaf0c384f56951869d0435/.bashrc#L59-L76
-
Hello there, any idea so I can switch between dark and light color in vim seamlessly? The problem is...
Screenshots and documentation are at: https://github.com/nickjj/dotfiles
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.
What are some alternatives?
vim-python-ide - Python development config
fisher - A plugin manager for Fish
org-roam - Rudimentary Roam replica with Org-mode
zinit - 🌻 Flexible and fast ZSH plugin manager
GNU Stow - GNU Stow - mirror of savannah git repository occasionally with more bleeding-edge branches
sheldon - :bowtie: Fast, configurable, shell plugin manager
vim-dirvish - Directory viewer for Vim :zap:
powerlevel10k - A Zsh theme
debug - Debugging functionality for Ruby
zsh4humans - A turnkey configuration for Zsh
nushell - A new type of shell
oh-my-fish - The Fish Shell Framework