Skip to content

Instantly share code, notes, and snippets.

@luminoso
Created October 14, 2020 15:50
Show Gist options
  • Save luminoso/4faab7fb8afc97b725256155428b8a18 to your computer and use it in GitHub Desktop.
Save luminoso/4faab7fb8afc97b725256155428b8a18 to your computer and use it in GitHub Desktop.
zinit zshrc
### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
print -P "%F{160}▓▒░ The clone has failed.%f%b"
fi
source "$HOME/.zinit/bin/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zinit-zsh/z-a-rust \
zinit-zsh/z-a-as-monitor \
zinit-zsh/z-a-patch-dl \
zinit-zsh/z-a-bin-gem-node
### End of Zinit's installer chunk
#
# Two regular plugins loaded without investigating.
zinit light zsh-users/zsh-autosuggestions
zinit light zdharma/fast-syntax-highlighting
# Plugin history-search-multi-word loaded with investigating.
zinit load zdharma/history-search-multi-word
# Load the pure theme, with zsh-async library that's bundled with it.
zinit ice pick"async.zsh" src"pure.zsh"
zinit light sindresorhus/pure
zinit snippet OMZP::extract
zinit snippet OMZP::colored-man-pages
zinit wait lucid atload"zicompinit; zicdreplay" blockf for \
zsh-users/zsh-completions
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
export CLOUDSDK_PYTHON=python2
# Load zpm-zsh/dircolors-material
zinit pack for dircolors-material
# Load trapd00r/LS_COLORS
zinit pack for ls_colors
# Download the package with the default ice list
zinit pack for fzf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment