From 8ec56e91092e2381d307f74d1f99a52d279955e5 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 4 Mar 2024 11:05:00 -0600 Subject: [PATCH] zsh: dfu updates submodules too --- etc/zsh/.zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index 90f4870..1972179 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -268,7 +268,13 @@ if [[ -v commands[zoxide] ]] { } alias cd..=up ## dotfiles -alias dfu='d=${$(echo -E - ~/.zshenv):P:h:h};GIT_DIR=$d/.git GIT_WORK_TREE=$d git pull' +alias dfu='d=${$(echo -E - ~/.zshenv):P:h:h};GIT_DIR=$d/.git GIT_WORK_TREE=$d { + git pull && + git submodules init && + git submodules sync && + git submodules update +}' +>>>>>>> Stashed changes ### hooks autoload -Uz add-zsh-hook -- 2.47.0