dotfiles/zsh/environment/host/devF/zshenv
2022-05-24 18:56:59 +00:00

15 lines
418 B
Bash

export build_dir="/opt/build"
export apps_dir="/mount/data0/apps"
for build_path in $build_dir/* ; do
if [[ $build_path =~ "shared" ]]; then
continue;
fi
# get the env name from the full path.
local env_name=$(basename $build_path )
eval "export ${env_name}_build=${build_path}"
eval "export ${env_name}_app=${apps_dir}/${env_name}"
eval "export ${env_name}_logs=${apps_dir}/${env_name}/logs"
done