zshlibs/tools/zshlibs_fpath_add
2024-01-18 19:21:01 +04:00

10 lines
194 B
Plaintext

function zshlibs_fpath_add()
{
local fpathtoadd="${1}"
zshlibs_log $0 "adding fpath '$fpathtoadd' to \$fpath"
if [[ ! ${fpath[(r)${fpathtoadd}]} ]]
then
path+=(${fpathtoadd})
fi
}