Skip to content

Commit 1e022e3

Browse files
committed
fix: optimize and re-format usage message
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
1 parent de85908 commit 1e022e3

File tree

10 files changed

+498
-1131
lines changed

10 files changed

+498
-1131
lines changed

_zinit

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ __zinit_commands(){
3636
'env-whitelist:Specify names (also patterns) of parameters to be left unchanged during an unload'
3737
'glance:Look at plugins source'
3838
'help:Usage information'
39+
'ice:Set ice'
3940
'load:Load plugin'
4041
'man:Display Zinit'\''s manpage'
4142
'module:Manage binary Zsh module shipped with Zinit'
@@ -236,6 +237,11 @@ _zinit_env_whitelist(){
236237
_zinit_glance(){
237238
_arguments - installed '1:installed:__zinit_installed' && ret=0
238239
} # ]]]
240+
# FUNCTION: _zinit_ice [[[
241+
_zinit_ice(){
242+
_arguments -A \
243+
'(-h --help)'{-h,--help}'[Print usage]' && ret=0
244+
} # ]]]
239245
# FUNCTION: _zinit_list [[[
240246
_zinit_list(){
241247
_message 'Hit enter to list the defined key bindings replay' && ret=0
@@ -279,7 +285,7 @@ _zinit_snippet(){
279285
_arguments -A \
280286
'(-c --command)'{-c,--command}'[Load the snippet as a command (i.e., make executable and apend to $PATH])' \
281287
'(-f --force)'{-f,--force}'[Force new download of the snippet file]' \
282-
'(-h --help)'{-h,--help}'[Show this help message]'
288+
'(-h --help)'{-h,--help}'[Print usage]'
283289
_arguments - snippet '*::snippet:__zinit_installed_snippets' && ret=0
284290
} # ]]]
285291
# FUNCTION: _zinit_status [[[

doc/zsdoc/zinit-additional.zsh.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ Has 7 line(s). Calls functions:
5353
|-- zinit-autoload.zsh/.zinit-clear-report-for
5454
`-- zinit.zsh/+zi-log
5555

56-
Called by:
57-
58-
zinit-autoload.zsh/.zinit-unload
56+
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
5957

6058
==== .zinit-debug-report
6159

@@ -68,7 +66,6 @@ ____
6866
Has 6 line(s). Calls functions:
6967

7068
.zinit-debug-report
71-
|-- zinit-autoload.zsh/.zinit-show-report
7269
`-- zinit.zsh/+zi-log
7370

7471
Uses feature(s): _source_
@@ -86,7 +83,6 @@ ____
8683
Has 7 line(s). Calls functions:
8784

8885
.zinit-debug-revert
89-
|-- zinit-autoload.zsh/.zinit-unload
9086
`-- zinit.zsh/+zi-log
9187

9288
Uses feature(s): _source_

0 commit comments

Comments
 (0)