Skip to content

Instantly share code, notes, and snippets.

@airtonix
Last active March 14, 2023 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save airtonix/9ed9c23105192823f6512947fb7005f7 to your computer and use it in GitHub Desktop.
Save airtonix/9ed9c23105192823f6512947fb7005f7 to your computer and use it in GitHub Desktop.
zinit with fzf-tab

zsh, zinit with fzf-tab

image

image

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
zinit version
zinit light Aloxaf/fzf-tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment