speed 🚀
zinit can load oh-my-zsh (and arbitrary local and online) scripts, better yet - asynchronously.
zinit
oh-my-zsh
example .zshrc snippet, perhaps sufficient for remote systems:
.zshrc
# ~/.zshrc if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ print -P "%F{33} %F{34}Installation successful.%f%b" || \ print -P "%F{160} The clone has failed.%f%b" fi source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit function load_starship() { # Load starship theme # line 1: `starship` binary as command, from github release # line 2: starship setup at clone(create init.zsh, completion) # line 3: pull behavior same as clone, source init.zsh zinit ice as"command" from"gh-r" \ atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \ atpull"%atclone" src"init.zsh" } command starship -h >&- || load_starship test -d ~/.local/share/zinit/plugins/starship---starship && zinit light starship/starship zinit ice wait"2" # load after 2 seconds zinit load zdharma-continuum/history-search-multi-word plugins=( git gitignore golang fzf terraform systemd safe-paste colored-man-pages ) zi snippet OMZP::git zi snippet OMZP::gitignore zi snippet OMZP::golang zi snippet OMZP::fzf zi snippet OMZP::systemd zi snippet OMZP::terraform zi snippet OMZP::safe-paste zi snippet OMZP::colored-man-pages
No dependencies set.
The note is not visible to the blocked user.
whyyy?
speed 🚀
zinitcan loadoh-my-zsh(and arbitrary local and online) scripts, better yet - asynchronously.example
.zshrcsnippet, perhaps sufficient for remote systems: