-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.zsh_plugins
103 lines (91 loc) · 4.64 KB
/
.zsh_plugins
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# plugin location: `~/.local/share/zinit/plugins`
# oh-my-zsh plugins
# in some environments, we may not be able to install svn
if type svn &> /dev/null; then
zinit svn wait lucid for \
OMZ::plugins/extract
fi
# NOTE the public iterm zsh integration is broken
# https://github.com/decayofmind/zsh-iterm2-utilities
zinit ice depth"1" \
pick"shell_integration/zsh" \
sbin"utilities/*" if"[[ $+ITERM_PROFILE ]]"
zinit load gnachman/iTerm2-shell-integration
# autopair must be loaded before syntax highlight
zinit wait lucid for \
OMZ::lib/functions.zsh \
OMZ::lib/termsupport.zsh \
hlissner/zsh-autopair \
OMZ::plugins/safe-paste
###########################
# Completion Setup
# similar to copycat, but using the native search so it's fast (https://github.com/tmux-plugins/tmux-copycat/tree/master)
###########################
# zicompinit runs `compinit` to generate completions
# important to load suggestions *after* zsh-completions
# - fzf/key-bindings: sets up reverse-i via fzf
# - fzf-tab: load order is important, must go last
# - forgit needs _git to be loaded in order for the additional src to work, which is why we zicompinit
# TODO https://github.com/felipec/git-completion/issues/8
# blockf ver"zinit-fixed" as"completion" nocompile mv'git-completion.zsh -> _git' iloveitaly/git-completion \
zinit wait lucid for \
mafredri/zsh-async \
redxtech/zsh-asdf-direnv \
zpm-zsh/zsh-better-npm-completion \
'https://gist.githubusercontent.com/iloveitaly/4eac0f4ddb3f8162f95fa3ed6f123a06/raw/91af07681dcb1bd863f1922526d6287debd10a80/1password.zsh' \
'https://gist.githubusercontent.com/iloveitaly/a79ffc31ef5b4785da8950055763bf52/raw/4140dd8fa63011cdd30814f2fbfc5b52c2052245/github-copilot-cli.zsh' \
'https://gist.githubusercontent.com/iloveitaly/043d91a2968597fe601673664b124dd3/raw/f79dd08a352f9dfde17ba22d345e8e1f87ac3c57/orbctl.zsh' \
'https://gist.githubusercontent.com/iloveitaly/ebd80140aaa4d8183b558adddb06b809/raw/fc23843bd07b3665233b8d74d0030b8ffff290dd/pack.plugin.zsh' \
'https://gist.githubusercontent.com/iloveitaly/a3f5967aca46f10c8a6833393eb1d2e5/raw/236d4fffc0511ef59b3f4150c376a1eb359acd46/docker.plugin.zsh' \
'https://gist.githubusercontent.com/iloveitaly/357a72f0f9e70f3a7d2aa6f8c40cf956/raw/795917afc433cd8897eba96fab3941791813a122/bun.plugin.zsh' \
'https://gist.githubusercontent.com/iloveitaly/b3c9fb69717d0d3f209cf682b3fa34b1/raw/e443d0a24691e3abb5415bcc877bfeb62a3f0d48/ov.plugin.zsh' \
'https://gist.githubusercontent.com/iloveitaly/c91b3e26d47f131badec7abb859b870a/raw/9bc3aabb7379cbc63c53aea600eca99e4e5cf803/azure.plugin.zsh' \
'https://github.com/iloveitaly/dolt/blob/zsh-plugin/dolt.plugin.zsh' \
'https://github.com/junegunn/fzf/blob/master/shell/completion.zsh' \
'https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh' \
'iloveitaly/cli-1' \
as'completion' blockf OMZ::plugins/ripgrep/_ripgrep \
wfxr/forgit \
blockf atpull'zinit creinstall .' zsh-users/zsh-completions \
RobSis/zsh-completion-generator \
atinit"zicompinit; zicdreplay" zdharma/fast-syntax-highlighting \
atload'_zsh_autosuggest_start' zsh-users/zsh-autosuggestions \
Aloxaf/fzf-tab \
iloveitaly/zsh-github-cli \
atload"zpcdreplay" atclone"./zplug.zsh" atpull"%atclone" g-plane/pnpm-shell-completion
# TODO conflicts with fzf-tab
# marlonrichert/zsh-autocomplete
# must be loaded after syntax completion
zinit load zsh-users/zsh-history-substring-search
# experimental
# - zsh-256color: configures env for 256 color support
# - colors: sets aliases for some colors and most styles via '$c'
# - lib/spectrum.zsh: 'spectrum_ls' alias to visually inspect colors
zinit wait'1' lucid for \
MichaelAquilina/zsh-auto-notify \
ajeetdsouza/zoxide \
djui/alias-tips \
chrissicool/zsh-256color \
zpm-zsh/colors \
OMZ::lib/spectrum.zsh
# binaries installed via zinit
# - git-fuzzy: 'git fuzzy' for interactive git commit cli
# - ports: 'ports ls' to inspect what ports are open
# - universalarchive: 'ua' for easily unarchiving everything from the command line`
zinit wait'2' lucid for \
as"program" pick"bin/git-fuzzy" bigH/git-fuzzy \
caarlos0/ports \
OMZ::plugins/universalarchive
# must load last
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
zinit light sindresorhus/pure
# avoid loading the builtin git and docker completions
# https://mikebian.co/git-completions-tooling-on-the-command-line/
if command -v brew &> /dev/null; then
rm $(brew --prefix)/share/zsh/site-functions/_git 2> /dev/null
rm $(brew --prefix)/share/zsh/site-functions/_docker 2> /dev/null
fi
# function don't get completions by default, aliases need to be manually assigned
zicompdef fdd=fd
zicompdef rgg=rg
zicompdef rgu=rg