Last active
March 17, 2020 02:56
-
-
Save syuji-higa/c4f80c44febc79eb1e4bdd7e74b0605d to your computer and use it in GitHub Desktop.
zinit setting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -Uz compinit && compinit | |
### Added by Zinit's installer | |
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then | |
print -P "%F{33}▓▒░ %F{220}Installing DHARMA Initiative Plugin Manager (zdharma/zinit)…%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-patch-dl \ | |
zinit-zsh/z-a-as-monitor \ | |
zinit-zsh/z-a-bin-gem-node | |
### End of Zinit's installer chunk | |
source $HOME/.zinit/bin/zinit.zsh | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
zinit light zsh-users/zsh-autosuggestions | |
zinit light zsh-users/zsh-syntax-highlighting | |
zinit load zdharma/history-search-multi-word | |
zinit ice from"gh-r" as"program" | |
zinit load junegunn/fzf-bin | |
# Load OMZ Git library | |
zinit snippet OMZ::lib/git.zsh | |
# Load Git plugin from OMZ | |
zinit snippet OMZ::plugins/git/git.plugin.zsh | |
zinit cdclear -q # <- forget completions provided up to this moment | |
setopt promptsubst | |
# Load theme from OMZ | |
zinit snippet OMZ::themes/dstufft.zsh-theme | |
# Pure | |
autoload -U promptinit; promptinit | |
prompt pure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment