From: sev Date: Mon, 4 Mar 2024 17:05:00 +0000 (-0600) Subject: zsh: dfu updates submodules too X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/8ec56e91092e2381d307f74d1f99a52d279955e5 zsh: dfu updates submodules too --- 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