Default prolog for all ZSH scripts?
Posted
by
Igor Spasic
on Super User
See other posts from Super User
or by Igor Spasic
Published on 2014-08-23T21:55:18Z
Indexed on
2014/08/23
22:24 UTC
Read the original article
Hit count: 360
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?
© Super User or respective owner