Default prolog for all ZSH scripts?
- by Igor Spasic
I have a file that contains several helper functions, meant to be used only in other ZSH scripts. I do not want them to be loaded with my profile. To make these functions available in my script, I would need to source this file.
Is it somehow possible to have automatic prolog script (or pre-script) loaded before all my ZSH scripts?
My current idea is to alias -s zsh extension to custom function that those all this for me:
concatenate prolog file and current script
calls zsh with such modified input
but for now I am somehow not able to do this (haven't sleep for almost a day). Please, does anyone have a working solution?