From 13718f4d8ab41485a3c16931fdeb55083be89598 Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 8 Mar 2021 05:24:23 -0500 Subject: [PATCH] remove submodules and add autoupdate --- libozsh.zsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libozsh.zsh b/libozsh.zsh index 4affaa3..5b39a87 100644 --- a/libozsh.zsh +++ b/libozsh.zsh @@ -10,7 +10,7 @@ export OZSH_LASTUPDATE_FILE="$OZSH_HOME/last_update" function ozsh_clone_plugin { if [ ! -d "$OZSH_MODULES/$1" ]; then echo "Installing plugin $1..." - git -C "$OZSH_MODULES" clone "$2" "$1" > /dev/null 2>&1 + git -C "$OZSH_MODULES" clone "$2" "$1" fi } @@ -37,13 +37,14 @@ function ozsh_load { function ozsh_update { git -C $OZSH_HOME stash - git -C $OZSH_HOME pull + git -C $OZSH_HOME pull --rebase git -C $OZSH_HOME stash pop # check for updates in modules for d in $OZSH_MODULES/*/ ; do - git -C $d pull + echo "Updating $d..." + git -C $d pull --rebase done echo $(date) > "$OZSH_LASTUPDATE_FILE"