]> git.sev.monster Git - dotfiles.git/commitdiff
zshrc: fix dfu alias master
authorsev <git@sev.monster>
Sat, 27 Apr 2024 11:37:26 +0000 (06:37 -0500)
committersev <git@sev.monster>
Sat, 27 Apr 2024 11:37:26 +0000 (06:37 -0500)
etc/zsh/.zshrc

index bd670c27d4b3025c86f1ebea220e2f3faade94ed..d9db92ab301df2c87497ec245a8e9cd94e06522b 100644 (file)
@@ -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
This page took 0.03871 seconds and 4 git commands to generate.