X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/294ed44e1a8dd7a6026213380c41bceb1a4a162a..20c4ef4e3c48fb859e41a7fa2f286cd970907709:/etc/zsh/.zshrc diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index 90f4870..d1d10dd 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -268,7 +268,12 @@ 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 +}' ### hooks autoload -Uz add-zsh-hook