# # Turn symlinks in $dhpath directories into dirhashes # # Copyright © 1994–2017 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # Source repository: http://git.madduck.net/v/etc/zsh.git # for dh in $dhpath; do if [ ! -d "$dh" ]; then zerror "no such directory: $dh" continue fi # zdebug "sourcing dirhashes directory ${dh#$ZDOTDIR/}" for l in "$dh"/*(@); do eval hash -d "$l:t"="$l:A" done done # vim:ft=zsh