]> git.sev.monster Git - dotfiles.git/commitdiff
zsh: dfu updates submodules too
authorsev <git@sev.monster>
Mon, 4 Mar 2024 17:05:00 +0000 (11:05 -0600)
committersev <git@sev.monster>
Fri, 5 Apr 2024 21:27:41 +0000 (16:27 -0500)
etc/zsh/.zshrc

index 90f487058bbbd7b57710f9af6cf18b9eb13c25c3..1972179b845da5c9729087918069902b03cb2f34 100644 (file)
@@ -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
This page took 0.033472 seconds and 4 git commands to generate.