mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-18 01:29:06 +00:00
feat(motd): better update check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user