Skip to content

Recipes for popular programs

vladislav doster edited this page Feb 4, 2024 · 17 revisions

Additional Recipes

Find 120+ more recipes here.

Setup

Add the following snippet as the first plugin in your configuration:

zinit light-mode for zdharma-continuum/zinit-annex-bin-gem-node

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes.

zi for \
    as'completions' \
    atclone'
      ./argocd* completion zsh > _argocd' \
    atpull'%atclone' \
    from'gh-r' \
    if'[[ "$(uname -m)" == x86_64 ]]' \
    sbin'argocd* -> argocd' \
  argoproj/argo-cd

bat

A cat(1) clone with syntax highlighting and Git integration.

zi for \
    from'gh-r' \
    lbin'!' \
    id-as \
    null \
  @sharkdp/bat

An experimental tool for linting and checking Makefiles

zi for \
    from'gh-r' \
    lbin'!checkmake* -> checkmake' \
    id-as \
    null \
  @mrtazz/checkmake

Terminal based "The Matrix" like implementation

zi for \
    as'program' \
    atclone"./configure --prefix=$ZPFX > /dev/null" \
    atpull'%atclone' \
    make"-j PREFIX=${ZPFX} install > /dev/null" \
    pick"cmatrix" \
  abishekvashok/cmatrix

A syntax-highlighting pager for git, diff, and grep output.

zi for \
    from'gh-r' \
    sbin'**/delta -> delta' \
  dandavison/delta

Load and unload environment variables depending on the current directory.

zi for \
    as"program" \
    atclone'./direnv hook zsh > zhook.zsh' \
    from"gh-r" \
    light-mode \
    mv"direnv* -> direnv" \
    src'zhook.zsh' \
  direnv/direnv

Docker

Docker CLI plugin for extended build capabilities with BuildKit

zi for \
    as'completions' \
    atclone'buildx* completion zsh > _buildx' \
    from"gh-r" \
    sbin'!buildx-* -> buildx' \
  @docker/buildx \

Programs to keep Docker login credentials safe by storing them in platform keystores

zi for \
    from"gh-r" \
    sbin'!* -> docker-credential-desktop' \
  @docker/docker-credential-helpers

A more intuitive version of du in rust

zi for \
    from'gh-r' \
    lbin'!' \
    id-as \
    null \
  @bootandy/dust

exa

exa is a modern replacement for ls.

zi for \
    atclone'cp -vf completions/exa.zsh _exa'  \
    from'gh-r' \
    sbin'**/exa -> exa' \
  ogham/exa

fd

A simple, fast, and user-friendly alternative to 'find'.

zi for \
    from'gh-r' \
    lbin'!' \
    id-as \
    null \
  @sharkdp/fd

fnm

Fast and simple Node.js version manager, built with Rust.

zinit for \
    as'completion' \
    atclone"./fnm completions --shell zsh > _fnm.zsh" \
    atload'eval $(fnm env --shell zsh)' \
    atpull'%atclone' \
    blockf \
    from'gh-r' \
    nocompile \
    sbin'fnm' \
  @Schniz/fnm

Fogg is an opinionated tool for managing infrastructure-as-code repositories using Terraform.

zi for \
    from'gh-r' \
    lbin'!' \
    id-as \
    null \
  @chanzuckerberg/fogg

fx

Command-line tool and terminal JSON viewer

zi for \
    from'gh-r'  \
    sbin'**/fx* -> fx' \
  @antonmedv/fx

fzf

fzf is a general-purpose command-line fuzzy finder.

zi for \
    from'gh-r'  \
    sbin'fzf'   \
  junegunn/fzf

fzf completion and key-bindings

zi for \
    https://github.com/junegunn/fzf/raw/master/shell/{'completion','key-bindings'}.zsh

gh

GitHub’s official command-line tool

zi for \
    from'gh-r' \
    sbin'**/gh' \
  cli/cli

Automatic Semantic Versioning for git-based software development

zi for \
    from'gh-r' \
    sbin'**/git-mkver' \
  idc101/git-mkver

Compute various size metrics for a Git repository, flagging those that might cause problems.

zi for \
    from'gh-r'      \
    sbin'git-sizer' \
  @github/git-sizer

Glow is a terminal-based markdown reader designed from the ground up to bring out the beauty—and power—of the CLI.

zi for \
    from'gh-r'  \
    sbin'**/glow' \
  charmbracelet/glow

Fast linters Runner for Go

zinit for \
    atclone'golangci-lint completion zsh > _golangci-lint' \
    from'gh-r' \
    sbin'golangci-lint' \
  @golangci/golangci-lint

A command-line tool and library for generating regular expressions from user-provided test cases.

zi for \
    from'gh-r'  \
    sbin'g*x -> grex'  \
  pemistahl/grex

The Missing Package Manager for macOS (or Linux).

zi for \
    as'null' \
    atclone'%atpull' \
    atpull'
         ./bin/brew update --preinstall \
      && ln -sf $PWD/completions/zsh/_brew $ZINIT[COMPLETIONS_DIR] \
      && rm -f brew.zsh \
      && ./bin/brew shellenv --dummy-arg > brew.zsh \
      && zcompile brew.zsh' \
    depth'3' \
    nocompletions \
    sbin'bin/brew' \
    src'brew.zsh' \
  homebrew/brew

Hugo

zi for \
    as"program" \
    from"gh-r" \
  @gohugoio/hugo

A terminal built on web technologies

zi for \
    bpick'*.zip' \
    from'gh-r' \
    sbin'!**/bin/hyper' \
  @vercel/hyper

A command-line benchmarking tool.

zi for \
    from'gh-r' \
    sbin'**/h*e -> hyperfine' \
  @sharkdp/hyperfine

jq

jq is a lightweight and flexible command-line JSON processor.

Binary

zi for \
    from'gh-r' \
    sbin'* -> jq' \
    nocompile \
  @jqlang/jq

Compile from source

zinit for \
    configure'--with-oniguruma=builtin' \
    make \
  jqlang/jq
zi for \
    bpick'kubectx;kubens' \
    from'gh-r' \
    sbin'kubectx;kubens'  \
  ahmetb/kubectx

A simple terminal UI for git commands

zi for \
    from'gh-r' \
    sbin'**/lazygit' \
  jesseduffield/lazygit

Create book from markdown files. Like Gitbook but implemented in Rust

zi for \
  as'completions' \
  atclone'mdbook completions zsh > _mdbook' \
  sbin \
  @rust-lang/mdBook

A command-line system information tool

zinit make for @dylanaraps/neofetch

Vim-fork focused on extensibility and usability

zi for \
    from'gh-r' \
    sbin'**/nvim -> nvim' \
    ver'nightly' \
  neovim/neovim
zi for \
    from'gh-r' \
    sbin'**/procs -> procs' \
  dalance/procs

ripgrep recursively searches directories for a regex pattern while respecting your gitignore

zi for \
    from'gh-r' \
    sbin'**/rg -> rg' \
  BurntSushi/ripgrep

A shell parser, formatter, and interpreter.

zi for \
    from'gh-r' \
    sbin'**/sh* -> shfmt' \
  @mvdan/sh

A minimal, blazing-fast, and infinitely customizable prompt for any shell!

zi for \
    from'gh-r' \
    sbin'**/starship -> starship' \
  starship/starship
zinit build for @aspiers/stow

A terminal multiplexer. It enables a number of terminals to be created, accessed, and controlled from a single screen.

zinit for \
    configure'--disable-utf8proc' \
    make \
  @tmux/tmux

CPU, RAM, and load monitor for use with tmux

zinit for \
    cmake \
  @thewtex/tmux-mem-cpu-load

tmux + tmux-mem-cpu-load

zinit id-as for \
    cmake \
  @thewtex/tmux-mem-cpu-load \
    configure'--disable-utf8proc' make \
  @tmux/tmux

A program that displays statistics about your code

zi for \
    from'gh-r' \
    sbin'**/tokei -> tokei' \
  XAMPPRocky/tokei

A hackable, minimal, fast TUI file explorer

zi for \                                                                                                               <<<
    from'gh-r' \
    nocompile \
    sbin'**/xplr -> xplr' \
  sayanarijit/xplr