add zshlibs path functions
This commit is contained in:
parent
63f6e93cda
commit
f5b1f38800
@ -76,13 +76,28 @@ function zshlibs_log()
|
||||
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
|
||||
|
||||
|
||||
function zlibs_path_expand()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function global_path_expand()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user