X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/e45b0db3d66ca9e041622db3d801d026fb4d3724..33230b65afa1076218abff057d0bbcc7486af0a8:/.zsh/zshenv/00-apath diff --git a/.zsh/zshenv/00-apath b/.zsh/zshenv/00-apath new file mode 100644 index 0000000..36ec84e --- /dev/null +++ b/.zsh/zshenv/00-apath @@ -0,0 +1,16 @@ +# +# Adds local alias directory to $apath +# +# 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 +# + +typeset -gaU apath + +for ad in $ZDOTDIR/aliases; do + [ -d "$ad" ] && array_prepend apath "$ad" +done + +# vim:ft=zsh