-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzinit.cheat
69 lines (46 loc) · 1.77 KB
/
zinit.cheat
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
% zinit
$ zinit_cache_folder: echo "$HOME/.local/share/zinit"
# [core] show Zinit status - 概述
zinit zstatus
# [core] statistics plugin load times - 统计 plugin 加载时间,与加载顺序排序
zinit times
# [core] updates and compiles Zinit - 更新zinit
zinit self-update
# [core] update plugin or snippets - 更新plugin或snippets
zinit update <plg-spec>
$ plg-spec : /bin/ls -1 -D -I "*zinit" "<zinit_cache_folder>/plugins"; \
find "<zinit_cache_folder>/snippets" -mindepth 2 -maxdepth 2 -type d | awk -F "/" '{print $(NF-1)"/"$NF}'
;
; plugin and snippets part
;
# [plugin] [snippets] delete - 删除plugin或snippets
zinit delete <plg_or_URL>
# [plugin] report - 查看 loaded plugin 状态
zinit report <plg-spec>
# [plugin] cd - 进入plugin目录
zinit cd <plg-spec>
$ plg-spec : /bin/ls -1 -D -I "*zinit" "<zinit_cache_folder>/plugins"; \
find "<zinit_cache_folder>/snippets" -mindepth 2 -maxdepth 2 -type d | awk -F "/" '{print $(NF-1)"/"$NF}'
# [plugin] status - 查看plugin的git status, 默认查看全部plugin
zinit status <plg-spec>
# [plugin] list - 列出加载的 plugins
zinit plugins
# [snippets] list - 列出加载的 snippets
zinit snippets
;
; completion part
;
# [completion] list - 列出使用的completion
zinit clist
# [completion] diable - 禁用completion
zinit cdisable <cname>
# [completion] enable - 启用completion
zinit cenable <cname>
# [completion] reinstall - 重新装载指定plugin的completion, 可接受绝对路径, -q 静默运行
zinit creinstall <plg-spec>
# [completion] uninstall - 卸载指定plugin的completion
zinit cuninstall <plg-spec>
# [completion] search - 搜索所有插件中可以使用的completion
zinit csearch
# [completion] refresh - 刷新已装载的completion
zinit compinit