From 7ed1509a5b8e6985cbf9cd0d019df702dd17425e Mon Sep 17 00:00:00 2001 From: sev Date: Sat, 27 Apr 2024 06:37:26 -0500 Subject: [PATCH 1/1] zshrc: fix dfu alias --- etc/zsh/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index bd670c2..d9db92a 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -288,13 +288,13 @@ if [[ -v commands[zoxide] ]] { } alias cd..=up ## dotfiles -alias dfu=' function { - local d=${$(echo -E - ~/.zshenv):P:h:h} - local -x GIT_DIR=$d/.git GIT_WORK_TREE=$d +alias dfu='function { + pushd -q ${$(echo -E - ~/.zshenv):P:h:h} git pull && git submodule init && git submodule sync && git submodule update + popd -q }' ## nocorrect # zsh doesnt really handle sudo very well, so ignore it -- 2.47.0