Zsh: Print a message when updating plugins
This commit is contained in:
parent
a9bae9ddd2
commit
0e381b7371
|
@ -55,6 +55,7 @@ if command -v antibody > /dev/null; then
|
||||||
local mod_month="$(stat --format="%y" ${ZSH_PLUGIN_SOURCE} 2> /dev/null | cut -d\- -f2)"
|
local mod_month="$(stat --format="%y" ${ZSH_PLUGIN_SOURCE} 2> /dev/null | cut -d\- -f2)"
|
||||||
# Update plugins every month.
|
# Update plugins every month.
|
||||||
if [[ ${mod_month} -ne $(date +'%m') ]]; then
|
if [[ ${mod_month} -ne $(date +'%m') ]]; then
|
||||||
|
print "\e[3;95mUpdating plugins…\e[0m"
|
||||||
antibody update --parallelism=$(nproc --ignore=1) \
|
antibody update --parallelism=$(nproc --ignore=1) \
|
||||||
&& touch ${ZSH_PLUGIN_SOURCE}
|
&& touch ${ZSH_PLUGIN_SOURCE}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user