Skip to content

Commit

Permalink
fix: optimize and re-format usage message
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster committed Jun 6, 2023
1 parent de85908 commit 68adee8
Show file tree
Hide file tree
Showing 10 changed files with 428 additions and 1,106 deletions.
8 changes: 7 additions & 1 deletion _zinit
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ __zinit_commands(){
'env-whitelist:Specify names (also patterns) of parameters to be left unchanged during an unload'
'glance:Look at plugins source'
'help:Usage information'
'ice:Set ice'
'load:Load plugin'
'man:Display Zinit'\''s manpage'
'module:Manage binary Zsh module shipped with Zinit'
Expand Down Expand Up @@ -236,6 +237,11 @@ _zinit_env_whitelist(){
_zinit_glance(){
_arguments - installed '1:installed:__zinit_installed' && ret=0
} # ]]]
# FUNCTION: _zinit_ice [[[
_zinit_ice(){
_arguments -A \
'(-h --help)'{-h,--help}'[Print usage]' && ret=0
} # ]]]
# FUNCTION: _zinit_list [[[
_zinit_list(){
_message 'Hit enter to list the defined key bindings replay' && ret=0
Expand Down Expand Up @@ -279,7 +285,7 @@ _zinit_snippet(){
_arguments -A \
'(-c --command)'{-c,--command}'[Load the snippet as a command (i.e., make executable and apend to $PATH])' \
'(-f --force)'{-f,--force}'[Force new download of the snippet file]' \
'(-h --help)'{-h,--help}'[Show this help message]'
'(-h --help)'{-h,--help}'[Print usage]'
_arguments - snippet '*::snippet:__zinit_installed_snippets' && ret=0
} # ]]]
# FUNCTION: _zinit_status [[[
Expand Down
6 changes: 1 addition & 5 deletions doc/zsdoc/zinit-additional.zsh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ Has 7 line(s). Calls functions:
|-- zinit-autoload.zsh/.zinit-clear-report-for
`-- zinit.zsh/+zi-log

Called by:

zinit-autoload.zsh/.zinit-unload
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).

==== .zinit-debug-report

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

.zinit-debug-report
|-- zinit-autoload.zsh/.zinit-show-report
`-- zinit.zsh/+zi-log

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

.zinit-debug-revert
|-- zinit-autoload.zsh/.zinit-unload
`-- zinit.zsh/+zi-log

Uses feature(s): _source_
Expand Down
Loading

0 comments on commit 68adee8

Please sign in to comment.