-
Notifications
You must be signed in to change notification settings - Fork 10
/
z-a-bin-gem-node.plugin.zsh
46 lines (36 loc) · 1.31 KB
/
z-a-bin-gem-node.plugin.zsh
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
# Copyright (c) 2019-2020 Sebastian Gniazdowski
# License MIT
# According to the Zsh Plugin Standard:
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
autoload .za-bgn-bin-or-src-function-body \
.za-bgn-bin-or-src-function-body-cygwin \
.za-bgn-mod-function-body \
za-bgn-atload-handler za-bgn-atclone-handler \
za-bgn-atpull-handler za-bgn-help-handler \
za-bgn-atdelete-handler \
za-bgn-shim-list
# An empty stub to fill the help handler fields
za-bgn-null-handler() { :; }
@zinit-register-annex "zinit-annex-bin-gem-node" \
subcommand:shim-list \
za-bgn-shim-list \
za-bgn-null-handler
@zinit-register-annex "zinit-annex-bin-gem-node" \
hook:\!atload-50 \
za-bgn-atload-handler \
za-bgn-help-handler \
"fbin''|sbin|sbin''|gem''|node''|pip''|fmod''|fsrc''|ferc''" # also register new ices
@zinit-register-annex "zinit-annex-bin-gem-node" \
hook:atclone-50 \
za-bgn-atclone-handler \
za-bgn-null-handler
@zinit-register-annex "zinit-annex-bin-gem-node" \
hook:\%atpull-50 \
za-bgn-atclone-handler \
za-bgn-null-handler
@zinit-register-annex "zinit-annex-bin-gem-node" \
hook:atdelete-50 \
za-bgn-atdelete-handler \
za-bgn-null-handler