Slow shell prompts that block user input can be fixed by computing expensive information (like VCS status) asynchronously. Using zsh's precmd hook, a background process computes the right-side prompt (RPROMPT) and signals the parent shell via USR1 when done, allowing the left prompt to render instantly while slow data loads in the background without blocking command input.
Sort: