update configure path_extra
This commit is contained in:
parent
31f67370ed
commit
8d4335438e
@ -13,6 +13,6 @@ if [[ -z $globaldots_path ]]; then
|
||||
echo 'functions require $globaldots_path to be set!'
|
||||
fi
|
||||
|
||||
autoload global_path_expand global_fpath_expand global_set_useropts \
|
||||
autoload global_path_expand global_fpath_expand \
|
||||
global_configure global_config_setup global_boot
|
||||
fpath+=(${zshlibs_install}/global)
|
||||
|
@ -1,7 +1,10 @@
|
||||
function global_config_setup()
|
||||
{
|
||||
zshlibs_log global "expanding path with '$path_extra'"
|
||||
global_path_expand $path_extra
|
||||
if [[ -n "${extras_path}" ]]
|
||||
then
|
||||
global_path_expand $extras_path $path_extra
|
||||
fi
|
||||
zshlibs_log global "expanding fpath with '$fpath_extra'"
|
||||
global_fpath_expand vanilla
|
||||
zshlibs_log global "done loading noninteractive config"
|
||||
|
@ -1,4 +1,4 @@
|
||||
function global_configure()
|
||||
{
|
||||
typeset -a -g path_extra
|
||||
typeset -a -g extras_choices
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
function global_path_expand()
|
||||
{
|
||||
local bin_base=${globaldots_path}/bin
|
||||
local bin_base=${1}/bin
|
||||
shift
|
||||
for pathnew in ${*}; do
|
||||
zshlibs_path_add "${bin_base}/${pathnew}"
|
||||
done;
|
||||
|
@ -1,4 +0,0 @@
|
||||
function global_set_useropts()
|
||||
{
|
||||
typeset -a -g path_extra
|
||||
}
|
@ -7,4 +7,3 @@ function zshlibs_path_add()
|
||||
path+=(${pathtoadd})
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user