zsh-defer
dotfiles.cli | zsh-defer | |
---|---|---|
13 | 7 | |
- | 303 | |
- | - | |
- | 4.4 | |
- | 4 months ago | |
Shell | ||
- | GNU General Public License v3.0 only |
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.cli
-
[Question] What are the best plugins for zsh ?
I use about 12 plugins, most of which I've written myself.
-
Is there a vim mode for zsh ?
bindkey -v is a builtin starting place, but there's a lot of extra bindings you can add to make it more like Vim. Personally, I've written a few plugins which make up the difference I want, and a few more personal bindings besides.
-
Any tip on optimizing this?
Here's my script. It forks off a playerctl --follow with a custom format to work around read skipping empty items (like a song without an artist). You don't have to do that, I just prefer that so I can add nwg-wrapper to view album art and song title on my desktop without spinning up another playerctl read loop.
-
How do you keep your install clean?
Any config I write, I add to my dotfiles repo. Then I can clone it down whenever I'm setting up a new machine/reinstall
-
exec <application> -> size and position?
I wrote this script to run an arbitrary command when the provided app's window appears.
-
Workspaces in use for notification
I'm curious; are you writing something like this?
-
Share your shell prompt here!
Custom Powerlevel10k
-
Custom mediaplayer.py for Waybar (working with & and "No media playing" status)
Watch out for < and > too. Playerctl's command-line has specifiers for {{markup_escape(title)}}, I use it my playerctl segment. Here's how it looks with the custom CSS.
-
General questions about writing bash code
My full config is here, if you want to take a look at anything else, including the plugins I use.
-
What are your favorite/dumbest aliases to use when you're feeling lazy?
There's also d and D which map to this function.
zsh-defer
- [Question] What are the best plugins for zsh ?
-
What are really usefull ZSH plug-ins?
zsh-defer
-
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
-
nvm makes terminal extremely slow to become interactive (WSL1/Oh My Zsh)
I've recently sped up my startup by using zsh-defer which has worked very well. I think nvm (the variant loaded through zsh) also has an option to load asynchronously without something like zsh-defer
-
What if I told you you don't really need a Zsh plugin manager?
I use zsh-defer for lazy plugin loading and I fork all plugin repos to avoid the same situation as with zinit
-
zed - yet another plugin manager for zsh. Nothing fancy, nothing new. Just does the basic stuffs - pulls, compiles and loads the plugins... does some completion stuffs. Fairly simple implementation with about 300 LOC. Why? 'cause I used zinit before and it vanished recently... so why not? 🤷🏼♂️
You can use this as a plugin for deferred loading like zinit: https://github.com/romkatv/zsh-defer
- How do you lazyload or delay loading plugins? Improving zsh and other questions (Or maybe my config is broken)
What are some alternatives?
waylock - A small screenlocker for Wayland compositors
zsh-async - Because your terminal should be able to perform tasks asynchronously without external tools!
config
zinit - 🌻 Flexible and fast ZSH plugin manager
agkozak-zsh-prompt - A fast, asynchronous Zsh prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
chezmoi - Manage your dotfiles across multiple diverse machines, securely.
cheat.sh - the only cheat sheet you need
zinit - Flexible and fast Zsh plugin manager with clean fpath, reports, completion management, Turbo, annexes, services, packages.
zsh-prompt-dir-perms - Directory Permissions Segment for Zsh Prompts
alias-tips - An oh-my-zsh plugin to help remembering those aliases you defined once
pso - Pretty Straightforward Opener
zgenom - A lightweight and fast plugin manager for ZSH