From: sev Date: Sat, 27 Apr 2024 11:37:26 +0000 (-0500) Subject: zshrc: fix dfu alias X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/7ed1509a5b8e6985cbf9cd0d019df702dd17425e?ds=sidebyside;hp=e226ac038cb5616a177678c19023b639c3e9ef1c zshrc: fix dfu alias --- 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