Explorar o código

fix(zsh): dynamically determine `DOTFILES_DIR`

Joe hai 8 meses
pai
achega
9de0068faf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .config/zsh/.zshenv

+ 1 - 1
.config/zsh/.zshenv

@@ -8,7 +8,7 @@ export XDG_STATE_HOME=$HOME/.local/state
 export XDG_RUNTIME_DIR=$HOME/.run
 export XDG_DATA_DIRS=/usr/local/share:/usr/share
 export XDG_CONFIG_DIRS=/etc/xdg
-export DOTFILES_DIR=$HOME/
+export DOTFILES_DIR=${${(%):-%N}:h:h:h}
 export XDG_CONFIG_HOME=$DOTFILES_DIR/.config
 export ZDOTDIR=$XDG_CONFIG_HOME/zsh