style(cli): fill rows in column output in theme and plugin list commands

This commit is contained in:
Marc Cornellà 2021-08-17 12:53:09 +02:00
parent bf888680ea
commit bc7ce982dd
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -405,14 +405,14 @@ function _omz::plugin::list {
if (( ${#custom_plugins} )); then
print -P "%U%BCustom plugins%b%u:"
print -l ${(q-)custom_plugins} | column
print -l ${(q-)custom_plugins} | column -x
fi
if (( ${#builtin_plugins} )); then
(( ${#custom_plugins} )) && echo # add a line of separation
print -P "%U%BBuilt-in plugins%b%u:"
print -l ${(q-)builtin_plugins} | column
print -l ${(q-)builtin_plugins} | column -x
fi
}
@ -631,14 +631,14 @@ function _omz::theme::list {
if (( ${#custom_themes} )); then
print -P "%U%BCustom themes%b%u:"
print -l ${(q-)custom_themes} | column
print -l ${(q-)custom_themes} | column -x
fi
if (( ${#builtin_themes} )); then
(( ${#custom_themes} )) && echo # add a line of separation
print -P "%U%BBuilt-in themes%b%u:"
print -l ${(q-)builtin_themes} | column
print -l ${(q-)builtin_themes} | column -x
fi
}