-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zinitrc
108 lines (102 loc) · 4.13 KB
/
.zinitrc
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
104
105
106
107
108
# zinit (zsh plugin manager) {{{
### 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
# }}}
# No Wait
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-bin-gem-node
zinit light-mode for \
atload'!_zsh_git_prompt_precmd_hook' \
woefe/git-prompt.zsh \
pick'async.zsh' \
mafredri/zsh-async \
from'gh-r' as'program' sbin'direnv* -> direnv' \
atclone'direnv hook zsh > zhook.zsh' atpull'%atclone' src='zhook.zsh' \
direnv/direnv \
atclone"dircolors -b LS_COLORS > clrs.zsh" \
atpull'%atclone' pick"clrs.zsh" nocompile'!' \
atload'zstyle ":completion:*" list-colors “${(s.:.)LS_COLORS}”' \
trapd00r/LS_COLORS
zinit wait lucid light-mode for \
peterhurford/up.zsh \
hlissner/zsh-autopair \
popstas/zsh-command-time \
sobolevn/wakatime-zsh-plugin \
olets/zsh-abbr \
atload'!_zsh_autosuggest_start' \
zsh-users/zsh-autosuggestions \
atpull'zinit creinstall -q "$PWD"' blockf \
zsh-users/zsh-completions \
atinit'ZINIT[COMPINIT_OPTS]=-C; zpcompinit; zpcdreplay' \
zdharma-continuum/fast-syntax-highlighting \
as'command' sbin'kubectx' id-as'kubectx' \
ahmetb/kubectx \
as'command' sbin'kubens' id-as'kubens' \
ahmetb/kubectx
# completion
zinit wait lucid for \
has'hub' id-as'hub-completion' \
nocompile \
as'completion' \
atload'zicompinit; zicdreplay' \
mv'hub-completion -> _hub'\
https://github.com/github/hub/blob/master/etc/hub.zsh_completion
# Install Github Release cli
zinit wait lucid from'gh-r' as'null' for \
sbin'**/dust' bootandy/dust \
sbin'**/rg' BurntSushi/ripgrep \
sbin'**/ghq' x-motemen/ghq \
sbin'**/hub' mislav/hub \
sbin'**/shellcheck' koalaman/shellcheck \
sbin'**/pandoc' jgm/pandoc \
sbin'**/bat' @sharkdp/bat \
sbin'shfmt* -> shfmt' @mvdan/sh \
sbin'jq* -> jq' jqlang/jq \
sbin'yq* -> yq' mikefarah/yq \
sbin'kapp-* -> kapp' carvel-dev/kapp \
sbin'ytt-* -> ytt' carvel-dev/ytt \
sbin'bosh-cli-* -> bosh' cloudfoundry/bosh-cli \
sbin'om-* -> om' pivotal-cf/om \
sbin'air_* -> air' cosmtrek/air \
sbin'dasel* -> dasel' TomWright/dasel \
sbin'credhub' cloudfoundry/credhub-cli \
sbin'pack' buildpacks/pack \
sbin'fzf' junegunn/fzf \
sbin'tflint' terraform-linters/tflint \
sbin'jid' simeji/jid \
bpick'*-linux.tgz' sbin'pack' buildpacks/pack \
bpick'fly-*' sbin'fly' concourse/concourse \
bpick'cf-mgmt-config-linux' sbin'cf-mgmt-config-linux -> cf-mgmt-config' id-as'cf-mgmt-config' vmware-tanzu-labs/cf-mgmt \
bpick'cf-mgmt-linux' sbin'cf-mgmt-linux -> cf-mgmt' id-as'cf-mgmt' vmware-tanzu-labs/cf-mgmt
# sbin'dive' wagoodman/dive \
# bpick'*_Linux-64bit.tar.gz' sbin'trivy' aquasecurity/trivy \
########## Function
# history
zinit ice lucid
zinit snippet 'https://gist.githubusercontent.com/dohq/9b97e07c865bb608108dd254b5e32fea/raw/fzf-history.zsh'
# ssh
zinit ice lucid
zinit snippet 'https://gist.githubusercontent.com/dohq/1dc702cc0b46eb62884515ea52330d60/raw/fzf-ssh.zsh'
# ssh-consul
zinit ice lucid
zinit snippet 'https://gist.githubusercontent.com/dohq/164de7bc95de765d9b3202d401b4549d/raw/fzf-ssh-consul.zsh'
# branch
zinit ice lucid
zinit snippet 'https://gist.githubusercontent.com/dohq/7cb290f0a9a90e8f24f0f4912f6633b8/raw/fzf-branch.zsh'
# ghq
zinit ice lucid
zinit snippet 'https://gist.githubusercontent.com/dohq/a643084df0c1957b6990ee69fb3126a1/raw/fzf-ghq.zsh'
# aws profile
zinit ice lucid
zinit snippet 'https://gist.githubusercontent.com/cm-watanabeseigo/0a103315529d502ce4a82d2a8aab6cd3/raw/.bash_profile_aws-profile'