zshlibs/tools/zshlibs_fpath_add

10 lines
194 B
Plaintext
Raw Permalink Normal View History

2024-01-18 15:21:01 +00:00
function zshlibs_fpath_add()
{
local fpathtoadd="${1}"
zshlibs_log $0 "adding fpath '$fpathtoadd' to \$fpath"
if [[ ! ${fpath[(r)${fpathtoadd}]} ]]
then
path+=(${fpathtoadd})
fi
}