1
0
Fork 0

Zsh: Print a message when updating plugins

This commit is contained in:
tastytea 2022-03-23 02:41:00 +01:00
parent a9bae9ddd2
commit 0e381b7371
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 0 deletions

View File

@ -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)"
# Update plugins every month.
if [[ ${mod_month} -ne $(date +'%m') ]]; then
print "\e[3;95mUpdating plugins…\e[0m"
antibody update --parallelism=$(nproc --ignore=1) \
&& touch ${ZSH_PLUGIN_SOURCE}
fi