]> git.sev.monster Git - dotfiles.git/commitdiff
zshenv: prefer _sev_home for fpath if ZDOTDIR unset
authorsev <git@sev.monster>
Mon, 16 Sep 2024 13:27:23 +0000 (08:27 -0500)
committersev <git@sev.monster>
Mon, 16 Sep 2024 13:46:18 +0000 (08:46 -0500)
etc/zsh/.zshenv

index 1ec57d7b55ff741539298a5c8337980d6cc26eef..3c53c99250383ba3105e1b2e51636e684cd66c66 100644 (file)
@@ -86,7 +86,7 @@ function _sev_setpath {
     # shift valid system paths to the front if there are any left
     ((len > 0 && len < $#path)) && path=("${(@)path[len + 1, -1]}" "${(@)path[1, len]}")
     # include our zsh dir in fpath. unlike above, we always prefer our paths
-    fpath=({${ZDOTDIR:-~/.zsh},{${_sev_home:-~},~}/.zsh}/functions/**/*(/N) "$fpath[@]")
+    fpath=({${ZDOTDIR:-{${_sev_home:-~},~}/.zsh},{${_sev_home:-~},~}/.zsh}/functions/**/*(/N) "$fpath[@]")
     # remove bad paths
     for (( i = 1; i <= $#fpath; i++ )) {
         if [[ ! -d $fpath[$i] ]] {
This page took 0.044896 seconds and 4 git commands to generate.