if you make a script that just defines those envs ...
# general
a
if you make a script that just defines those envs and call make deps, make and then ./build/linux/osqueryi 'select * from ....'