From eca2496b6c1614f9d6ed3f7db0b47d7a5e1cc237 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Tue, 30 Jun 2020 09:29:45 -0500
Subject: [PATCH] .profile: Separate updating and upgrading

---
 .profile | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/.profile b/.profile
index d1ce2d8c..3a21ae32 100755
--- a/.profile
+++ b/.profile
@@ -263,11 +263,17 @@ if [ -d "$HOME/.dotfiles" ]; then
 	dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
 	alias dot="$dotcmd"
 	alias dotupdate="\
-		printf 'Pulling...\n'; \
+		printf 'Pulling...\n'
 		$dotcmd pull
-		printf 'Updating submodules...\n'; \
-		$dotcmd submodule update --init; \
-		printf 'Checking out masters...\n'; \
+		printf 'Updating submodules...\n'
+		$dotcmd submodule update --init --recursive --remote'
+		$dotcmd status"
+	alias dotupgrade="\
+		printf 'Pulling...\n'
+		$dotcmd pull
+		printf 'Updating submodules...\n'
+		$dotcmd submodule update --init
+		printf 'Checking out masters...\n'
 		$dotcmd submodule -q foreach --recursive 'git checkout -q master && git pull' && \
 		$dotcmd status"
 	unset dotcmd