add zshlibs path functions

This commit is contained in:
accel 2022-01-11 18:01:21 +03:00
parent 63f6e93cda
commit f5b1f38800

View File

@ -76,13 +76,28 @@ function zshlibs_log()
fi fi
} }
function zshlibs_path_add()
{
local pathtoadd="${1}"
zshlibs_log $0 "adding path '$pathtoadd' to \$PATH"
if [[ ! ${path[(r)${pathtoadd}]} ]]
then
path+=(${pathtoadd})
fi
}
function zshlibs_fpath_add()
{
local fpathtoadd="${1}"
zshlibs_log $0 "adding fpath '$fpathtoadd' to \$fpath"
if [[ ! ${fpath[(r)${fpathtoadd}]} ]]
then
path+=(${fpathtoadd})
fi
}
##### CONFIGURATION LIBRARIES ##### CONFIGURATION LIBRARIES
function zlibs_path_expand()
{
}
function global_path_expand() function global_path_expand()
{ {