feat(motd): better update check

This commit is contained in:
2024-04-01 18:05:22 +03:00
parent 6a465ba888
commit 71a8a1bd78

View File

@@ -2,7 +2,10 @@
source "$HOME/.dotfiles/plugins/colors.plugin.zsh"
if [[ ! -z $(git -C $HOME/.dotfiles fetch --dry-run) ]]; then
# update repo
git -C $HOME/.dotfiles remote update
if [[ ! -z $(git -C $HOME/.dotfiles status -uno) ]]; then
echo_yellow "You have home updates waiting to be pulled.\nUse \`hli\` to pull & install the changes."
echo
fi