From 271a1c8b80c0dcc0a415d7a7b420199f36005f27 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 10 Oct 2018 16:36:43 -0500 Subject: [PATCH] .profile: Update dotupdate again I'm figuring out git submodule foreach, slowly but surely --- .profile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.profile b/.profile index 61fb8ad7..801eab1e 100755 --- a/.profile +++ b/.profile @@ -53,9 +53,8 @@ if [ -d "$HOME/.dotfiles" ]; then dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' alias dot="$dotcmd" alias dotupdate="\ - $dotcmd submodule -q foreach git checkout master && \ - $dotcmd submodule -q foreach git pull && \ - $dotcmd pull && \ + printf 'Updating submodules...\n'; \ + $dotcmd submodule -q foreach --recursive 'git checkout -q master && git pull' && \ $dotcmd status" fi