Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/zsh/autoload.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,7 @@ builtin setopt extended_glob warn_create_global typeset_silent \
(( ${#tmp} > 1 && ${#tmp} % 2 == 0 )) && sice=( "${(Q)tmp[@]}" ) || sice=()
fi
local attime=$(( ZI[$entry3] - ZI[START_TIME] ))
if (( OPTS[opt_-S,--seconds] )); then
if (( OPTS[opt_-S,--seconds] || OPTS[opt_-s,--snippets] )); then
local time="$ZI[$entry] s"
attime="${(M)attime#*.???} s"
else
Expand Down
4 changes: 2 additions & 2 deletions zi.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2310,7 +2310,7 @@ zi() {
--force opt_-f,--force
-p opt_-p,--parallel:"Turn on concurrent, multi-thread update (of all objects)."
--parallel opt_-p,--parallel
-s opt_-s,--snippets:"Update only snippets (i.e.: skip updating plugins)."
-s opt_-s,--snippets:"update:[Update only snippets (i.e.: skip updating plugins).] times:[Show times in seconds.]"
--snippets opt_-s,--snippets
-L opt_-l,--plugins:"Update only plugins (i.e.: skip updating snippets)."
-l opt_-l,--plugins
Expand Down Expand Up @@ -2339,7 +2339,7 @@ zi() {
cdclear "-h|--help|-q|--quiet"
cdreplay "-h|--help|-q|--quiet"
module "-h|--help|-B|--build|-I|--info|-r|--reset"
times "-h|--help|-m|--moments|-S|--seconds|-a|--all"
times "-h|--help|-m|--moments|-s|-S|--seconds|-a|--all"
light "-h|--help|-b|--bindkeys"
report "-h|--help|-a|--all"
snippet "-h|--help|-f|--force|--command|-x"
Expand Down
Loading