I'm imagining a flag for esh that allows this on the command line so I don't have to manually import utilities in each of my template files, e.g.: esh -i utils/net.sh -i utils/data.sh -o output.conf input.conf.esh. My gut is telling me there's some kind of way to do this in the shell by altering the environment or passing some flags to the shell interpreter (-s flag) without altering esh, but I can't figure it out.
Is there a good way to import my own utilities globally without manually importing them from every file?
For example, if I have this:
I can then write a template that imports my utility like this:
I'm imagining a flag for esh that allows this on the command line so I don't have to manually import utilities in each of my template files, e.g.:
esh -i utils/net.sh -i utils/data.sh -o output.conf input.conf.esh
. My gut is telling me there's some kind of way to do this in the shell by altering the environment or passing some flags to the shell interpreter (-s
flag) without altering esh, but I can't figure it out.