-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zinit
69 lines (61 loc) · 2.83 KB
/
.zinit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
### Added by Zinit's installer
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
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust
### End of Zinit's installer chunk
# Completion Options.
setopt complete_in_word # Complete From Both Ends Of A Word.
setopt always_to_end # Move Cursor To The End Of A Completed Word.
setopt path_dirs # Perform Path Search Even On Command Names With Slashes.
setopt auto_menu # Show Completion Menu On A Successive Tab Press.
setopt auto_list # Automatically List Choices On Ambiguous Completion.
setopt auto_param_slash # If Completed Parameter Is A Directory, Add A Trailing Slash.
setopt no_complete_aliases
setopt promptsubst
zinit wait lucid for \
OMZL::git.zsh \
atload"unalias grv" \
OMZP::git
zinit ice pick"async.zsh" src"pure.zsh" # with zsh-async library that's bundled with it.
zinit light sindresorhus/pure
zinit wait lucid light-mode for \
OMZ::lib/compfix.zsh \
OMZ::lib/completion.zsh \
OMZ::lib/functions.zsh \
OMZ::lib/diagnostics.zsh \
OMZ::lib/grep.zsh \
OMZ::lib/key-bindings.zsh \
OMZ::lib/misc.zsh \
OMZ::lib/spectrum.zsh \
OMZ::lib/termsupport.zsh \
OMZ::lib/directories.zsh \
atinit"zicompinit; zicdreplay" \
zdharma-continuum/fast-syntax-highlighting \
OMZ::plugins/colored-man-pages/colored-man-pages.plugin.zsh \
OMZ::plugins/command-not-found/command-not-found.plugin.zsh \
atload"_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions \
OMZ::plugins/git-auto-fetch/git-auto-fetch.plugin.zsh \
as"completion" \
OMZ::plugins/docker/_docker \
OMZ::plugins/vscode/vscode.plugin.zsh \
OMZ::plugins/brew/brew.plugin.zsh \
OMZ::plugins/terraform/terraform.plugin.zsh \
OMZ::plugins/pyenv/pyenv.plugin.zsh
# Recommended Be Loaded Last.
zinit ice wait blockf lucid atpull'zinit creinstall -q .'
zinit load zsh-users/zsh-completions